Class PlayerBase

java.lang.Object
com.ardorcraft.player.PlayerBase
Direct Known Subclasses:
PlayerWithCollision

public class PlayerBase extends Object
Useful baseclass for player handling
  • Field Details

    • position

      protected final Vector3 position
    • direction

      protected final Vector3 direction
    • up

      protected final Vector3 up
    • left

      protected final Vector3 left
    • velocity

      protected final Vector3 velocity
    • acceleration

      protected final Vector3 acceleration
  • Constructor Details

    • PlayerBase

      public PlayerBase()
  • Method Details

    • getPosition

      public Vector3 getPosition()
    • getDirection

      public Vector3 getDirection()
    • getUp

      public Vector3 getUp()
    • getVelocity

      public Vector3 getVelocity()
    • getLeft

      public Vector3 getLeft()
    • getAcceleration

      public Vector3 getAcceleration()
    • normalize

      public void normalize()