|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.math.spring.SpringPointForce
public abstract class SpringPointForce
SpringPointForce
is an abstract class defining an external
force to be used with the SpringSystem class.
Constructor Summary | |
---|---|
SpringPointForce()
|
Method Summary | |
---|---|
abstract void |
apply(float dt,
SpringPoint node)
Apply the force defined by this class on a given point. |
java.lang.Class |
getClassTag()
|
boolean |
isEnabled()
Return whether or not this system is enabled. |
void |
read(JMEImporter e)
|
void |
setEnabled(boolean enabled)
Set this force enabled or not. |
void |
write(JMEExporter e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringPointForce()
Method Detail |
---|
public void setEnabled(boolean enabled)
enabled
- booleanpublic boolean isEnabled()
public abstract void apply(float dt, SpringPoint node)
dt
- amount of time since last apply call in ms.node
- the node to apply the force to.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 |