com.jme.input.controls.controller
Class RotationController
java.lang.Object
com.jme.scene.Controller
com.jme.input.controls.controller.RotationController
- All Implemented Interfaces:
- Savable, java.io.Serializable
public class RotationController
- extends Controller
- Author:
- Matthew D. Hicks
- See Also:
- Serialized Form
Methods inherited from class com.jme.scene.Controller |
getClassTag, getControllerValues, getMaxTime, getMinTime, getRepeatType, getSpeed, isActive, read, setActive, setControllerValues, setMaxTime, setMinTime, setRepeatType, setSpeed, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RotationController
public RotationController(Spatial spatial,
GameControl positive,
GameControl negative,
float multiplier,
Axis axis)
update
public void update(float time)
- Description copied from class:
Controller
- Defined by extending classes,
update
is a signal to
Controller that it should update whatever object(s) it is controlling.
- Specified by:
update
in class Controller
- Parameters:
time
- The time in seconds between the last call to update and the
current one
getPositive
public GameControl getPositive()
setPositive
public void setPositive(GameControl positive)
getNegative
public GameControl getNegative()
setNegative
public void setNegative(GameControl negative)
getMultiplier
public float getMultiplier()
setMultiplier
public void setMultiplier(float multiplier)
getSpatial
public Spatial getSpatial()
setSpatial
public void setSpatial(Spatial spatial)