|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.input.action.InputAction
com.jme.input.action.KeyInputAction
com.jme.input.action.KeyNodeLookUpAction
public class KeyNodeLookUpAction
KeyNodeLookUpAction
defines an action to tilt the node towards
the worlds positive y-axis. The rotation is along the node's left vector (the
first column of it's rotation matrix).
Field Summary |
---|
Fields inherited from class com.jme.input.action.InputAction |
---|
speed |
Constructor Summary | |
---|---|
KeyNodeLookUpAction(Spatial node,
float speed)
Constructor instatiates a new KeyNodeLookUpAction object
using the supplied node and speed for it's attributes. |
Method Summary | |
---|---|
void |
performAction(InputActionEvent evt)
performAction rotates the node towards the world's
positive y-axis at a speed of movement speed * time. |
Methods inherited from class com.jme.input.action.InputAction |
---|
getSpeed, setSpeed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyNodeLookUpAction(Spatial node, float speed)
KeyNodeLookUpAction
object
using the supplied node and speed for it's attributes.
node
- the node that will be affected by this action.speed
- the speed at which the node can move.Method Detail |
---|
public void performAction(InputActionEvent evt)
performAction
rotates the node towards the world's
positive y-axis at a speed of movement speed * time. Where time is the
time between frames and 1 corresponds to 1 second.
evt
- the event that triggered the perform action method.InputActionInterface.performAction(InputActionEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |