Class PxJointAngularLimitPair


public class PxJointAngularLimitPair extends PxJointLimitParameters
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxJointAngularLimitPair

      protected PxJointAngularLimitPair()
    • PxJointAngularLimitPair

      protected PxJointAngularLimitPair(long address)
    • PxJointAngularLimitPair

      public PxJointAngularLimitPair(float lowerLimit, float upperLimit)
      construct an angular hard limit pair.

      The lower value must be less than the upper value.

      Parameters:
      lowerLimit - The lower angle of the limit
      upperLimit - The upper angle of the limit
      See Also:
    • PxJointAngularLimitPair

      public PxJointAngularLimitPair(float lowerLimit, float upperLimit, PxSpring spring)
      construct an angular soft limit pair.

      The lower value must be less than the upper value.

      Parameters:
      lowerLimit - The lower angle of the limit
      upperLimit - The upper angle of the limit
      spring - The stiffness and damping of the limit spring
      See Also:
  • Method Details

    • wrapPointer

      public static PxJointAngularLimitPair wrapPointer(long address)
    • arrayGet

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

      public static PxJointAngularLimitPair createAt(long address, float lowerLimit, float upperLimit)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      lowerLimit - WebIDL type: float
      upperLimit - WebIDL type: float
      Returns:
      Stack allocated object of PxJointAngularLimitPair
    • createAt

      public static <T> PxJointAngularLimitPair createAt(T allocator, NativeObject.Allocator<T> allocate, float lowerLimit, float upperLimit)
      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.
      lowerLimit - WebIDL type: float
      upperLimit - WebIDL type: float
      Returns:
      Stack allocated object of PxJointAngularLimitPair
    • createAt

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

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

      public void destroy()
    • getUpper

      public float getUpper()
      Returns:
      WebIDL type: float
    • setUpper

      public void setUpper(float value)
      Parameters:
      value - WebIDL type: float
    • getLower

      public float getLower()
      the range of the limit. The upper limit must be no lower than the lower limit.

      Unit: Angular: Radians Range: See the joint on which the limit is used for details
      Default: lower = -PI/2, upper = PI/2

    • setLower

      public void setLower(float value)
      the range of the limit. The upper limit must be no lower than the lower limit.

      Unit: Angular: Radians Range: See the joint on which the limit is used for details
      Default: lower = -PI/2, upper = PI/2