|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.math.spring.SpringPoint
public class SpringPoint
SpringPoint
defines a single point in a SpringSystem.
Field Summary | |
---|---|
Vector3f |
acceleration
Acceleration vector, zeroed and recalculated on each SpringSystem.calcForces(float). |
int |
index
index of this point in the system. |
float |
invMass
Inverse Mass of this point. |
float |
mass
Mass of this point. |
Vector3f |
oldPos
Previous Position of this point in space. |
Vector3f |
position
Position of this point in space. |
Constructor Summary | |
---|---|
SpringPoint(Vector3f pos)
Public constructor. |
Method Summary | |
---|---|
java.lang.Class |
getClassTag()
|
void |
read(JMEImporter e)
|
void |
setMass(float m)
Set the mass for this point. |
void |
update(float dt)
Verlet update of point location. |
void |
write(JMEExporter e)
|
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 acceleration
Constructor Detail |
---|
public SpringPoint(Vector3f pos)
pos
- Vertex position of this point.Method Detail |
---|
public void setMass(float m)
m
- floatpublic void update(float dt)
dt
- float - change in time since last update.public void write(JMEExporter e) throws java.io.IOException
write
in interface Savable
java.io.IOException
public void read(JMEImporter e) throws java.io.IOException
read
in interface Savable
java.io.IOException
public java.lang.Class getClassTag()
getClassTag
in interface Savable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |