Class PlayerWithCollision

java.lang.Object
com.ardorcraft.player.PlayerBase
com.ardor3d.example.craft.player.PlayerWithCollision
Direct Known Subclasses:
PlayerWithPhysics

public class PlayerWithCollision extends PlayerBase
Player implementation with collision against the world
  • Field Details

    • oldLocation

      protected final Vector3 oldLocation
    • currentLocation

      protected final Vector3 currentLocation
    • moveDir

      protected final Vector3 moveDir
    • penetrationVec

      protected final Vector3 penetrationVec
    • normal

      protected final Vector3 normal
    • mult

      protected final Vector3 mult
    • testVec

      protected final Vector3 testVec
    • testVecs

      protected final Vector3[] testVecs
    • isOnGround

      protected boolean isOnGround
  • Constructor Details

    • PlayerWithCollision

      public PlayerWithCollision()
  • Method Details

    • isPlayerSpace

      public boolean isPlayerSpace(Pos pos)
    • update

      public void update(BlockWorld blockScene, ReadOnlyTimer timer)
    • isOnGround

      public boolean isOnGround()