public class DwPhysics<T extends DwParticle> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DwPhysics.Param |
Modifier and Type | Field and Description |
---|---|
boolean |
CHECK_PARTICLE_INDEX_WHEN_ADDING |
DwPhysics.Param |
param |
HashMap<DwPair<DwParticle>,DwSpringConstraint> |
spring_map |
ArrayList<DwSpringConstraint> |
springs |
boolean |
update_particle_shapes |
Constructor and Description |
---|
DwPhysics(DwPhysics.Param param) |
Modifier and Type | Method and Description |
---|---|
void |
addParticles(T[] particles_add,
int particles_add_count) |
int |
getNewCollisionGroupId() |
T[] |
getParticles() |
int |
getParticlesCount() |
int |
getSpringCount() |
ArrayList<DwSpringConstraint> |
getSprings() |
void |
reset() |
void |
setParticles(T[] particles_set,
int particles_set_count) |
void |
update(float timestep) |
public DwPhysics.Param param
public ArrayList<DwSpringConstraint> springs
public HashMap<DwPair<DwParticle>,DwSpringConstraint> spring_map
public boolean CHECK_PARTICLE_INDEX_WHEN_ADDING
public boolean update_particle_shapes
public DwPhysics(DwPhysics.Param param)
public T[] getParticles()
public int getParticlesCount()
public ArrayList<DwSpringConstraint> getSprings()
public int getSpringCount()
public int getNewCollisionGroupId()
public void addParticles(T[] particles_add, int particles_add_count)
public void setParticles(T[] particles_set, int particles_set_count)
public void reset()
public void update(float timestep)
Processing library PixelFlow by Thomas Diewald. (c) 2017