|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.math.SpringNode
SpringNode defines a single node in a SpringSystem.
| Field Summary | |
Vector3f |
acceleration
Acceleration vector, zeroed and recalculated on each SpringSystem.calcForces(float). |
int |
index
index of this node in the system. |
float |
invMass
Inverse Mass of this node. |
float |
mass
Mass of this node. |
Vector3f |
normal
Normal vector of this node in space. |
Vector3f |
oldPos
Previous Position of this node in space. |
Vector3f |
position
Position of this node in space. |
| Constructor Summary | |
SpringNode(Vector3f pos,
Vector3f norm)
Public constructor. |
|
| Method Summary | |
void |
setMass(float m)
Set the mass for this node. |
void |
update(float dt)
Verlet update of node location. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int index
public float mass
public float invMass
public Vector3f position
public Vector3f oldPos
public Vector3f normal
public Vector3f acceleration
| Constructor Detail |
public SpringNode(Vector3f pos,
Vector3f norm)
pos - Vertex position of this node.norm - Vector describing node's normal.| Method Detail |
public void setMass(float m)
m - floatpublic void update(float dt)
dt - float - change in time since last update.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||