|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.nexttext.behaviour.AbstractAction net.nexttext.behaviour.physics.PhysicsAction net.nexttext.behaviour.physics.Spin
public class Spin
This action gives the object a one-time angular spin.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action |
---|
Action.ActionResult |
Constructor Summary | |
---|---|
Spin()
Default constructor. |
|
Spin(float force)
Default constructor. |
Method Summary | |
---|---|
Action.ActionResult |
behave(TextObject to)
Apply behaviour to text object. |
void |
init(float force)
Initialize properties. |
Methods inherited from class net.nexttext.behaviour.physics.PhysicsAction |
---|
applyAcceleration, applyAngularAcceleration, applyAngularForce, applyForce, getAngularVelocity, getMass, getRequiredProperties, getVelocity |
Methods inherited from class net.nexttext.behaviour.AbstractAction |
---|
behave, behave, complete, getDisplayName, makeBehaviour, properties, setDisplayName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Spin()
public Spin(float force)
force
- angular force in radMethod Detail |
---|
public void init(float force)
force
- public Action.ActionResult behave(TextObject to)
behave
in interface Action
behave
in class AbstractAction
to
- text object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |