Class PlayerWithPhysics


public class PlayerWithPhysics extends PlayerWithCollision
A player implementation with walk/fly modes and gravity and jumping.
  • Constructor Details

    • PlayerWithPhysics

      public PlayerWithPhysics(LogicalLayer logicalLayer)
  • Method Details

    • update

      public void update(BlockWorld blockScene, ReadOnlyTimer timer)
      Overrides:
      update in class PlayerWithCollision
    • jump

      public void jump()
    • isWalking

      public boolean isWalking()
    • setWalking

      public void setWalking(boolean walking)
    • getWalkControl

      public WalkControl getWalkControl()
    • getFlyControl

      public FlyControl getFlyControl()
    • disableControls

      public void disableControls()
    • enableControls

      public void enableControls()