public class DwSoftBall3D extends DwSoftBody3D
DwSoftBody3D.CustomParticle3D| Modifier and Type | Field and Description |
|---|---|
int |
bend_spring_dist |
int |
bend_spring_mode |
DwHalfEdge.Mesh |
mesh |
float |
nodes_r |
float |
normal_dir |
float[][] |
normals |
float |
radius |
int |
subdivisions |
display_normal_length, particlescollision_group_id, collision_radius_scale, CREATE_BEND_SPRINGS, CREATE_SHEAR_SPRINGS, CREATE_STRUCT_SPRINGS, material_color, nodes_offset, num_nodes, param_particle, param_spring, particle_color, particle_color2, particle_gray, physics, self_collisions, shade_springs_by_tension, shp_mesh, shp_particles, shp_wireframe, use_particles_color| Constructor and Description |
|---|
DwSoftBall3D() |
| Modifier and Type | Method and Description |
|---|---|
DwSpringConstraint |
addSpring(int ia,
int ib,
DwSpringConstraint.TYPE type) |
void |
computeNormals() |
void |
create(DwPhysics<DwParticle3D> physics,
int subdivisions,
float radius,
float start_x,
float start_y,
float start_z) |
void |
createShapeMesh(processing.core.PGraphics pg) |
void |
createShapeWireframe(processing.core.PGraphics pg,
DwStrokeStyle style) |
void |
displayNormals(processing.core.PGraphics pg) |
DwParticle3D |
getNode(int idx) |
createShapeParticles, createShapeParticles, displaySprings, updateParticlesShapesdisplayMesh, displayParticles, displayWireframe, setMaterialColor, setMaterialColor, setParam, setParam, setParticleColor, setParticleColorpublic DwHalfEdge.Mesh mesh
public float nodes_r
public int subdivisions
public float radius
public int bend_spring_mode
public int bend_spring_dist
public float[][] normals
public float normal_dir
public void create(DwPhysics<DwParticle3D> physics, int subdivisions, float radius, float start_x, float start_y, float start_z)
public DwParticle3D getNode(int idx)
public DwSpringConstraint addSpring(int ia, int ib, DwSpringConstraint.TYPE type)
public void computeNormals()
computeNormals in class DwSoftBody3Dpublic void createShapeMesh(processing.core.PGraphics pg)
createShapeMesh in class DwSoftBodypublic void createShapeWireframe(processing.core.PGraphics pg,
DwStrokeStyle style)
createShapeWireframe in class DwSoftBodypublic void displayNormals(processing.core.PGraphics pg)
displayNormals in class DwSoftBody3DProcessing library PixelFlow by Thomas Diewald. (c) 2017