public abstract class DwSoftBody3D extends DwSoftBody
Modifier and Type | Class and Description |
---|---|
class |
DwSoftBody3D.CustomParticle3D |
Modifier and Type | Field and Description |
---|---|
float |
display_normal_length |
DwParticle3D[] |
particles |
collision_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 |
---|
DwSoftBody3D() |
Modifier and Type | Method and Description |
---|---|
abstract void |
computeNormals() |
void |
createShapeParticles(processing.core.PApplet papplet) |
void |
createShapeParticles(processing.core.PApplet papplet,
boolean icosahedron) |
abstract void |
displayNormals(processing.core.PGraphics pg) |
void |
displaySprings(processing.core.PGraphics pg,
DwStrokeStyle style,
DwSpringConstraint.TYPE type) |
void |
updateParticlesShapes() |
createShapeMesh, createShapeWireframe, displayMesh, displayParticles, displayWireframe, setMaterialColor, setMaterialColor, setParam, setParam, setParticleColor, setParticleColor
public DwParticle3D[] particles
public float display_normal_length
public void createShapeParticles(processing.core.PApplet papplet)
createShapeParticles
in class DwSoftBody
public void createShapeParticles(processing.core.PApplet papplet, boolean icosahedron)
createShapeParticles
in class DwSoftBody
public void updateParticlesShapes()
public void displaySprings(processing.core.PGraphics pg, DwStrokeStyle style, DwSpringConstraint.TYPE type)
displaySprings
in class DwSoftBody
public abstract void computeNormals()
public abstract void displayNormals(processing.core.PGraphics pg)
Processing library PixelFlow by Thomas Diewald. (c) 2017