Class PxJointLimitPyramid


public class PxJointLimitPyramid extends PxJointLimitParameters
Describes a pyramidal joint limit.
See Also:
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxJointLimitPyramid

      protected PxJointLimitPyramid()
    • PxJointLimitPyramid

      protected PxJointLimitPyramid(long address)
    • PxJointLimitPyramid

      public PxJointLimitPyramid(float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax)
      Construct a pyramid hard limit.
      Parameters:
      yLimitAngleMin - The minimum limit angle from the Y-axis of the constraint frame
      yLimitAngleMax - The maximum limit angle from the Y-axis of the constraint frame
      zLimitAngleMin - The minimum limit angle from the Z-axis of the constraint frame
      zLimitAngleMax - The maximum limit angle from the Z-axis of the constraint frame
      See Also:
    • PxJointLimitPyramid

      public PxJointLimitPyramid(float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, PxSpring spring)
      Construct a pyramid soft limit.
      Parameters:
      yLimitAngleMin - The minimum limit angle from the Y-axis of the constraint frame
      yLimitAngleMax - The maximum limit angle from the Y-axis of the constraint frame
      zLimitAngleMin - The minimum limit angle from the Z-axis of the constraint frame
      zLimitAngleMax - The maximum limit angle from the Z-axis of the constraint frame
      spring - The stiffness and damping of the limit spring
      See Also:
  • Method Details

    • wrapPointer

      public static PxJointLimitPyramid wrapPointer(long address)
    • arrayGet

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

      public static PxJointLimitPyramid createAt(long address, float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      yLimitAngleMin - WebIDL type: float
      yLimitAngleMax - WebIDL type: float
      zLimitAngleMin - WebIDL type: float
      zLimitAngleMax - WebIDL type: float
      Returns:
      Stack allocated object of PxJointLimitPyramid
    • createAt

      public static <T> PxJointLimitPyramid createAt(T allocator, NativeObject.Allocator<T> allocate, float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax)
      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.
      yLimitAngleMin - WebIDL type: float
      yLimitAngleMax - WebIDL type: float
      zLimitAngleMin - WebIDL type: float
      zLimitAngleMax - WebIDL type: float
      Returns:
      Stack allocated object of PxJointLimitPyramid
    • createAt

      public static PxJointLimitPyramid createAt(long address, float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, PxSpring spring)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      yLimitAngleMin - WebIDL type: float
      yLimitAngleMax - WebIDL type: float
      zLimitAngleMin - WebIDL type: float
      zLimitAngleMax - WebIDL type: float
      spring - WebIDL type: PxSpring [Const, Ref]
      Returns:
      Stack allocated object of PxJointLimitPyramid
    • createAt

      public static <T> PxJointLimitPyramid createAt(T allocator, NativeObject.Allocator<T> allocate, float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, PxSpring spring)
      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.
      yLimitAngleMin - WebIDL type: float
      yLimitAngleMax - WebIDL type: float
      zLimitAngleMin - WebIDL type: float
      zLimitAngleMax - WebIDL type: float
      spring - WebIDL type: PxSpring [Const, Ref]
      Returns:
      Stack allocated object of PxJointLimitPyramid
    • destroy

      public void destroy()
    • getYAngleMin

      public float getYAngleMin()
      the minimum angle from the Y axis of the constraint frame.

      Unit: Angular: Radians Range: Angular: (-PI,PI)
      Default: -PI/2

    • setYAngleMin

      public void setYAngleMin(float value)
      the minimum angle from the Y axis of the constraint frame.

      Unit: Angular: Radians Range: Angular: (-PI,PI)
      Default: -PI/2

    • getYAngleMax

      public float getYAngleMax()
      the maximum angle from the Y axis of the constraint frame.

      Unit: Angular: Radians Range: Angular: (-PI,PI)
      Default: PI/2

    • setYAngleMax

      public void setYAngleMax(float value)
      the maximum angle from the Y axis of the constraint frame.

      Unit: Angular: Radians Range: Angular: (-PI,PI)
      Default: PI/2

    • getZAngleMin

      public float getZAngleMin()
      the minimum angle from the Z-axis of the constraint frame.

      Unit: Angular: Radians Range: Angular: (-PI,PI)
      Default: -PI/2

    • setZAngleMin

      public void setZAngleMin(float value)
      the minimum angle from the Z-axis of the constraint frame.

      Unit: Angular: Radians Range: Angular: (-PI,PI)
      Default: -PI/2

    • getZAngleMax

      public float getZAngleMax()
      the maximum angle from the Z-axis of the constraint frame.

      Unit: Angular: Radians Range: Angular: (-PI,PI)
      Default: PI/2

    • setZAngleMax

      public void setZAngleMax(float value)
      the maximum angle from the Z-axis of the constraint frame.

      Unit: Angular: Radians Range: Angular: (-PI,PI)
      Default: PI/2