Class PxBoxControllerDesc


public class PxBoxControllerDesc extends PxControllerDesc
Descriptor for a box character controller.
See Also:
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxBoxControllerDesc

      protected PxBoxControllerDesc(long address)
    • PxBoxControllerDesc

      public PxBoxControllerDesc()
      constructor sets to default.
  • Method Details

    • wrapPointer

      public static PxBoxControllerDesc wrapPointer(long address)
    • arrayGet

      public static PxBoxControllerDesc arrayGet(long baseAddress, int index)
    • createAt

      public static PxBoxControllerDesc createAt(long address)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      Returns:
      Stack allocated object of PxBoxControllerDesc
    • createAt

      public static <T> PxBoxControllerDesc createAt(T allocator, NativeObject.Allocator<T> allocate)
      Type Parameters:
      T - Allocator class, e.g. LWJGL's MemoryStack.
      Parameters:
      allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
      allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
      Returns:
      Stack allocated object of PxBoxControllerDesc
    • destroy

      public void destroy()
    • getHalfHeight

      public float getHalfHeight()
      Half height

      Default: 1.0

    • setHalfHeight

      public void setHalfHeight(float value)
      Half height

      Default: 1.0

    • getHalfSideExtent

      public float getHalfSideExtent()
      Half side extent

      Default: 0.5

    • setHalfSideExtent

      public void setHalfSideExtent(float value)
      Half side extent

      Default: 0.5

    • getHalfForwardExtent

      public float getHalfForwardExtent()
      Half forward extent

      Default: 0.5

    • setHalfForwardExtent

      public void setHalfForwardExtent(float value)
      Half forward extent

      Default: 0.5

    • setToDefault

      public void setToDefault()
      (re)sets the structure to the default.