org.xith3d.schedops.values
Class KeyPoint3fAdjuster
java.lang.Object
org.xith3d.schedops.values.Adjuster
org.xith3d.schedops.values.KeyPoint3fAdjuster
- All Implemented Interfaces:
- org.jagatoo.datatypes.NamedObject, ScheduledOperation, Updatable
public class KeyPoint3fAdjuster
- extends Adjuster
Add comment here...
|
Constructor Summary |
KeyPoint3fAdjuster(java.lang.String name,
org.openmali.vecmath2.Point3f data,
KeyPoint3fAdjuster.Axis axis,
float delta,
Adjuster.Mode mode,
org.jagatoo.input.devices.Keyboard keyboard)
|
KeyPoint3fAdjuster(java.lang.String name,
org.openmali.vecmath2.Point3f data,
KeyPoint3fAdjuster.Axis axis,
float delta,
Adjuster.Mode mode,
org.jagatoo.input.devices.Keyboard keyboard,
org.jagatoo.input.devices.components.Key ADD_KEY,
org.jagatoo.input.devices.components.Key SUB_KEY,
org.jagatoo.input.devices.components.Key PRINT_KEY)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyPoint3fAdjuster
public KeyPoint3fAdjuster(java.lang.String name,
org.openmali.vecmath2.Point3f data,
KeyPoint3fAdjuster.Axis axis,
float delta,
Adjuster.Mode mode,
org.jagatoo.input.devices.Keyboard keyboard)
KeyPoint3fAdjuster
public KeyPoint3fAdjuster(java.lang.String name,
org.openmali.vecmath2.Point3f data,
KeyPoint3fAdjuster.Axis axis,
float delta,
Adjuster.Mode mode,
org.jagatoo.input.devices.Keyboard keyboard,
org.jagatoo.input.devices.components.Key ADD_KEY,
org.jagatoo.input.devices.components.Key SUB_KEY,
org.jagatoo.input.devices.components.Key PRINT_KEY)
update
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
- Updates this Updatable object.
- Parameters:
gameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.
getState
public java.lang.String getState()
- Get the state of this adjuster
- Specified by:
getState in class Adjuster
setAxis
public void setAxis(KeyPoint3fAdjuster.Axis axis)
- Set the axis the adjuster act on
- Parameters:
axis - can be Axis.X, Axis.Y, or Axis.Z
getSpeed
public float getSpeed()
- Returns:
- the adjuster speed, in units/second
setSpeed
public void setSpeed(float speed)
- Adjust the speed
- Parameters:
speed - New speed, in units/second