Package com.ardor3d.example.craft.player
Class PlayerWithCollision
java.lang.Object
com.ardorcraft.player.PlayerBase
com.ardor3d.example.craft.player.PlayerWithCollision
- Direct Known Subclasses:
PlayerWithPhysics
Player implementation with collision against the world
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Vector3
protected boolean
protected final Vector3
protected final Vector3
protected final Vector3
protected final Vector3
protected final Vector3
protected final Vector3
protected final Vector3[]
Fields inherited from class com.ardorcraft.player.PlayerBase
acceleration, direction, left, position, up, velocity
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isPlayerSpace
(Pos pos) void
update
(BlockWorld blockScene, ReadOnlyTimer timer) Methods inherited from class com.ardorcraft.player.PlayerBase
getAcceleration, getDirection, getLeft, getPosition, getUp, getVelocity, normalize
-
Field Details
-
oldLocation
-
currentLocation
-
moveDir
-
penetrationVec
-
normal
-
mult
-
testVec
-
testVecs
-
isOnGround
protected boolean isOnGround
-
-
Constructor Details
-
PlayerWithCollision
public PlayerWithCollision()
-
-
Method Details
-
isPlayerSpace
-
update
-
isOnGround
public boolean isOnGround()
-