Class PxBoxController


public class PxBoxController extends PxController
Box character controller.
See Also:
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxBoxController

      protected PxBoxController()
    • PxBoxController

      protected PxBoxController(long address)
  • Method Details

    • wrapPointer

      public static PxBoxController wrapPointer(long address)
    • arrayGet

      public static PxBoxController arrayGet(long baseAddress, int index)
    • getHalfHeight

      public float getHalfHeight()
      Gets controller's half height.
      Returns:
      The half height of the controller.
      See Also:
    • getHalfSideExtent

      public float getHalfSideExtent()
      Gets controller's half side extent.
      Returns:
      The half side extent of the controller.
      See Also:
    • getHalfForwardExtent

      public float getHalfForwardExtent()
      Gets controller's half forward extent.
      Returns:
      The half forward extent of the controller.
      See Also:
    • setHalfHeight

      public boolean setHalfHeight(float halfHeight)
      Sets controller's half height.

      \warning this doesn't check for collisions.

      Parameters:
      halfHeight - The new half height for the controller.
      Returns:
      Currently always true.
      See Also:
    • setHalfSideExtent

      public boolean setHalfSideExtent(float halfSideExtent)
      Sets controller's half side extent.

      \warning this doesn't check for collisions.

      Parameters:
      halfSideExtent - The new half side extent for the controller.
      Returns:
      Currently always true.
      See Also:
    • setHalfForwardExtent

      public boolean setHalfForwardExtent(float halfForwardExtent)
      Sets controller's half forward extent.

      \warning this doesn't check for collisions.

      Parameters:
      halfForwardExtent - The new half forward extent for the controller.
      Returns:
      Currently always true.
      See Also: