|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.input.modules.fpih.FPIHPhysics
public class FPIHPhysics
This is the physics code for the FirstPersonInputHandler.
| Constructor Summary | |
|---|---|
FPIHPhysics(org.openmali.spatial.AxisIndicator upAxis,
float width,
float height,
org.openmali.vecmath2.Vector3f offset,
CollisionEngine collEngine,
SimulationEngine simEngine,
SimulationWorld simWorld,
boolean integrateWithSimulation,
boolean addDebugShape)
|
|
FPIHPhysics(float width,
float height,
org.openmali.vecmath2.Vector3f offset,
CollisionEngine collEngine)
|
|
FPIHPhysics(float width,
float height,
org.openmali.vecmath2.Vector3f offset,
CollisionEngine collEngine,
boolean addDebugShape)
|
|
FPIHPhysics(float width,
float height,
org.openmali.vecmath2.Vector3f offset,
CollisionEngine collEngine,
SimulationEngine simEngine,
boolean integrateWithSimulation,
boolean addDebugShape)
|
|
FPIHPhysics(float width,
float height,
org.openmali.vecmath2.Vector3f offset,
CollisionEngine collEngine,
SimulationEngine simEngine,
SimulationWorld simWorld,
boolean integrateWithSimulation,
boolean addDebugShape)
|
|
FPIHPhysics(float width,
float height,
org.openmali.vecmath2.Vector3f offset,
PhysicsEngine physEngine,
boolean integrateWithSimulation,
boolean addDebugShape)
|
|
FPIHPhysics(float width,
float height,
org.openmali.vecmath2.Vector3f offset,
PhysicsEngine physEngine,
SimulationWorld simWorld,
boolean integrateWithSimulation,
boolean addDebugShape)
|
|
| Method Summary | |
|---|---|
boolean |
areCollisionsEnabled()
|
protected Collideable |
createCollideable(CollisionEngine collEngine,
float width,
float height)
Creates the Collideable, that is used to check for FPIH
collisions with the environment. |
protected Node |
createCollideableDebugger(org.openmali.spatial.AxisIndicator upAxis,
float width,
float height)
Creates the Node (probably a Shape3D), that visualizes the Collideable. |
Body |
getBody()
|
Collideable |
getCollider()
|
org.openmali.vecmath2.Vector3f |
getColliderOffset()
|
Node |
getDebugNode()
|
long |
getLastGameTime()
|
void |
init(Transformable view,
org.openmali.vecmath2.Vector3f tpOffset)
|
boolean |
isSimulationEnabled()
|
void |
setColliderCheckCallback(ColliderCheckCallback ccc)
Use this to check for avatar-collisions from. |
void |
setColliderOffset(float offsetX,
float offsetY,
float offsetZ)
Sets the collision-avatar-offset in world coordinates. |
void |
setColliderOffset(org.openmali.vecmath2.Tuple3f offset)
Sets the collision-avatar-offset in world coordinates. |
void |
setCollisionsEnabled(boolean enabled)
|
void |
setSimulationEnabled(boolean enabled)
|
SlidingColliderCheckCallback |
setSlidingColliderCheckCallback(CollisionEngine collEngine,
CollideableGroup collGroup)
|
boolean |
startJump(org.openmali.spatial.AxisIndicator upAxis)
Called, when the player jumped. |
void |
update(long gameMicros,
long frameMicros,
Transformable view,
org.openmali.vecmath2.Vector3f deltaMovement,
float rotX,
float rotY,
org.openmali.vecmath2.Vector3f thirdPersonOffset)
|
void |
updateFromView(org.openmali.vecmath2.Tuple3f viewPosition)
|
void |
updateGameTime(long gameMicros)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FPIHPhysics(org.openmali.spatial.AxisIndicator upAxis,
float width,
float height,
org.openmali.vecmath2.Vector3f offset,
CollisionEngine collEngine,
SimulationEngine simEngine,
SimulationWorld simWorld,
boolean integrateWithSimulation,
boolean addDebugShape)
upAxis - width - height - offset - collEngine - simEngine - simWorld - integrateWithSimulation - addDebugShape -
public FPIHPhysics(float width,
float height,
org.openmali.vecmath2.Vector3f offset,
CollisionEngine collEngine,
SimulationEngine simEngine,
SimulationWorld simWorld,
boolean integrateWithSimulation,
boolean addDebugShape)
public FPIHPhysics(float width,
float height,
org.openmali.vecmath2.Vector3f offset,
CollisionEngine collEngine,
SimulationEngine simEngine,
boolean integrateWithSimulation,
boolean addDebugShape)
public FPIHPhysics(float width,
float height,
org.openmali.vecmath2.Vector3f offset,
PhysicsEngine physEngine,
SimulationWorld simWorld,
boolean integrateWithSimulation,
boolean addDebugShape)
public FPIHPhysics(float width,
float height,
org.openmali.vecmath2.Vector3f offset,
PhysicsEngine physEngine,
boolean integrateWithSimulation,
boolean addDebugShape)
public FPIHPhysics(float width,
float height,
org.openmali.vecmath2.Vector3f offset,
CollisionEngine collEngine,
boolean addDebugShape)
public FPIHPhysics(float width,
float height,
org.openmali.vecmath2.Vector3f offset,
CollisionEngine collEngine)
| Method Detail |
|---|
public void setCollisionsEnabled(boolean enabled)
public final boolean areCollisionsEnabled()
public void setSimulationEnabled(boolean enabled)
public final boolean isSimulationEnabled()
public final void updateGameTime(long gameMicros)
public final long getLastGameTime()
public final Collideable getCollider()
public final Body getBody()
public final Node getDebugNode()
public void setColliderOffset(float offsetX,
float offsetY,
float offsetZ)
offsetX - offsetY - offsetZ - public void setColliderOffset(org.openmali.vecmath2.Tuple3f offset)
offset - public org.openmali.vecmath2.Vector3f getColliderOffset()
public boolean startJump(org.openmali.spatial.AxisIndicator upAxis)
public void updateFromView(org.openmali.vecmath2.Tuple3f viewPosition)
public void update(long gameMicros,
long frameMicros,
Transformable view,
org.openmali.vecmath2.Vector3f deltaMovement,
float rotX,
float rotY,
org.openmali.vecmath2.Vector3f thirdPersonOffset)
gameMicros - frameMicros - view - deltaMovement - rotX - rotY - thirdPersonOffset - public void setColliderCheckCallback(ColliderCheckCallback ccc)
ccc -
public SlidingColliderCheckCallback setSlidingColliderCheckCallback(CollisionEngine collEngine,
CollideableGroup collGroup)
public void init(Transformable view,
org.openmali.vecmath2.Vector3f tpOffset)
protected Collideable createCollideable(CollisionEngine collEngine,
float width,
float height)
Collideable, that is used to check for FPIH
collisions with the environment.
collEngine - width - height -
protected Node createCollideableDebugger(org.openmali.spatial.AxisIndicator upAxis,
float width,
float height)
width - height -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||