Class PxCapsuleControllerDesc


public class PxCapsuleControllerDesc extends PxControllerDesc
A descriptor for a capsule character controller.
See Also:
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxCapsuleControllerDesc

      protected PxCapsuleControllerDesc(long address)
    • PxCapsuleControllerDesc

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

    • wrapPointer

      public static PxCapsuleControllerDesc wrapPointer(long address)
    • arrayGet

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

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

      public static <T> PxCapsuleControllerDesc 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 PxCapsuleControllerDesc
    • destroy

      public void destroy()
    • getRadius

      public float getRadius()
      The radius of the capsule

      Default: 0.0

      See Also:
    • setRadius

      public void setRadius(float value)
      The radius of the capsule

      Default: 0.0

      See Also:
    • getHeight

      public float getHeight()
      The height of the controller

      Default: 0.0

      See Also:
    • setHeight

      public void setHeight(float value)
      The height of the controller

      Default: 0.0

      See Also:
    • getClimbingMode

      public PxCapsuleClimbingModeEnum getClimbingMode()
      The climbing mode

      Default: PxCapsuleClimbingMode::eEASY

      See Also:
    • setClimbingMode

      public void setClimbingMode(PxCapsuleClimbingModeEnum value)
      The climbing mode

      Default: PxCapsuleClimbingMode::eEASY

      See Also:
    • setToDefault

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