|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.input.modules.fpih.FPIHMovementConstraints
public class FPIHMovementConstraints
FPIHMovementConstraints defines movement constraints for a
FirstPersonInputHandler.
This includes constraints for the movement as well as constraints for the
mouse rotation or zooming.
| Constructor Summary | |
|---|---|
FPIHMovementConstraints()
|
|
| Method Summary | |
|---|---|
void |
applyMovementConstraints(org.openmali.vecmath2.Tuple3f viewPosition,
org.openmali.spatial.AxisIndicator upAxis)
|
void |
applyMovementDeltaConstraints(org.openmali.vecmath2.Vector3f viewDeltaPosition,
org.openmali.spatial.AxisIndicator upAxis)
|
void |
applyRotationalConstraints(org.openmali.vecmath2.Tuple3f viewEuler,
org.openmali.spatial.AxisIndicator upAxis)
Applies the rotational constraints to the euler-angles. |
boolean |
getFixedPlaneEnabled()
If enabled, the Player will always move on the current y-plane. |
float |
getMaxAngleDown()
|
float |
getMaxAngleUp()
|
void |
setFixedPlaneEnabled(boolean enabled)
If enabled, the Player will always move on the current y-plane. |
void |
setMaxAngleDown(float angle)
Sets the maximum down-angle (in radians), that the view can be rotated. |
void |
setMaxAngleUp(float angle)
Sets the maximum up-angle (in radians), that the view can be rotated. |
void |
setMaxAngleUpDown(float angle)
Just calls setMaxAngleUp(float) and setMaxAngleDown(float). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FPIHMovementConstraints()
| Method Detail |
|---|
public void setMaxAngleUp(float angle)
angle - public final float getMaxAngleUp()
public void setMaxAngleDown(float angle)
angle - public final float getMaxAngleDown()
public final void setMaxAngleUpDown(float angle)
setMaxAngleUp(float) and setMaxAngleDown(float).
angle - public void setFixedPlaneEnabled(boolean enabled)
enabled - enabled/disabledpublic final boolean getFixedPlaneEnabled()
public void applyRotationalConstraints(org.openmali.vecmath2.Tuple3f viewEuler,
org.openmali.spatial.AxisIndicator upAxis)
viewEuler - upAxis -
public void applyMovementDeltaConstraints(org.openmali.vecmath2.Vector3f viewDeltaPosition,
org.openmali.spatial.AxisIndicator upAxis)
public void applyMovementConstraints(org.openmali.vecmath2.Tuple3f viewPosition,
org.openmali.spatial.AxisIndicator upAxis)
viewPosition - upAxis -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||