|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.cal3d.core.CalSpringSystem
public class CalSpringSystem
The spring system class.
| Field Summary | |
|---|---|
protected boolean |
collisionEnabled
|
protected org.openmali.vecmath2.Vector3f |
force
|
protected org.openmali.vecmath2.Vector3f |
gravity
|
static int |
ITERATION_COUNT
|
protected CalModel |
model
|
| Constructor Summary | |
|---|---|
CalSpringSystem(CalModel model)
Constructs the spring system instance. |
|
| Method Summary | |
|---|---|
void |
calculateForces(CalSubmesh submesh,
float deltaTime)
Calculates the forces on each unbound vertex. |
void |
calculateVertices(CalSubmesh submesh,
float deltaTime)
Calculates the vertices influenced by the spring system instance. |
org.openmali.vecmath2.Vector3f |
getForce()
|
org.openmali.vecmath2.Vector3f |
getGravity()
|
boolean |
isCollisionEnabled()
|
void |
setCollisionEnabled(boolean collisionEnabled)
|
void |
setForce(org.openmali.vecmath2.Vector3f force)
|
void |
setGravity(org.openmali.vecmath2.Vector3f gravity)
|
void |
update(float deltaTime)
Updates all the spring systems in the attached meshes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CalModel model
protected org.openmali.vecmath2.Vector3f gravity
protected org.openmali.vecmath2.Vector3f force
protected boolean collisionEnabled
public static final int ITERATION_COUNT
| Constructor Detail |
|---|
public CalSpringSystem(CalModel model)
model - the model that should be managed with this
spring system instance.| Method Detail |
|---|
public void calculateForces(CalSubmesh submesh,
float deltaTime)
submesh - A pointer to the submesh from which the forces should be
calculated.deltaTime - The elapsed time in seconds since the last calculation.
public void calculateVertices(CalSubmesh submesh,
float deltaTime)
submesh - A pointer to the submesh from which the vertices should be
calculated.deltaTime - The elapsed time in seconds since the last calculation.public void update(float deltaTime)
public org.openmali.vecmath2.Vector3f getGravity()
public void setGravity(org.openmali.vecmath2.Vector3f gravity)
public org.openmali.vecmath2.Vector3f getForce()
public void setForce(org.openmali.vecmath2.Vector3f force)
public boolean isCollisionEnabled()
public void setCollisionEnabled(boolean collisionEnabled)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||