public class DwSoftGrid2D extends DwSoftBody2D
DwSoftBody2D.CustomParticle2D| Modifier and Type | Field and Description |
|---|---|
int |
bend_spring_dist |
int |
bend_spring_mode |
float |
nodes_r |
int |
nodes_x |
int |
nodes_y |
processing.opengl.PGraphics2D |
texture_XYp |
float |
tx_inv |
float |
ty_inv |
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 |
|---|
DwSoftGrid2D() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSpring(int ax,
int ay,
int offx,
int offy,
DwSpringConstraint.TYPE type) |
void |
create(DwPhysics<DwParticle2D> physics,
int nx,
int ny,
float nr,
float start_x,
float start_y) |
void |
createShapeMesh(processing.core.PGraphics pg) |
void |
createShapeWireframe(processing.core.PGraphics pg,
DwStrokeStyle style) |
DwParticle2D |
getNode(int x,
int y) |
createShapeParticles, createShapeParticles, displaySpringsdisplayMesh, displayParticles, displayWireframe, setMaterialColor, setMaterialColor, setParam, setParam, setParticleColor, setParticleColorpublic int nodes_x
public int nodes_y
public float nodes_r
public float tx_inv
public float ty_inv
public processing.opengl.PGraphics2D texture_XYp
public int bend_spring_mode
public int bend_spring_dist
public void create(DwPhysics<DwParticle2D> physics, int nx, int ny, float nr, float start_x, float start_y)
public DwParticle2D getNode(int x, int y)
public void addSpring(int ax,
int ay,
int offx,
int offy,
DwSpringConstraint.TYPE type)
public void createShapeMesh(processing.core.PGraphics pg)
createShapeMesh in class DwSoftBodypublic void createShapeWireframe(processing.core.PGraphics pg,
DwStrokeStyle style)
createShapeWireframe in class DwSoftBodyProcessing library PixelFlow by Thomas Diewald. (c) 2017