Class PxJointLimitCone


public class PxJointLimitCone extends PxJointLimitParameters
Describes an elliptical conical joint limit. Note that very small or highly elliptical limit cones may result in jitter.
See Also:
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxJointLimitCone

      protected PxJointLimitCone()
    • PxJointLimitCone

      protected PxJointLimitCone(long address)
    • PxJointLimitCone

      public PxJointLimitCone(float yLimitAngle, float zLimitAngle)
      Construct a cone hard limit.
      Parameters:
      yLimitAngle - The limit angle from the Y-axis of the constraint frame
      zLimitAngle - The limit angle from the Z-axis of the constraint frame
      See Also:
    • PxJointLimitCone

      public PxJointLimitCone(float yLimitAngle, float zLimitAngle, PxSpring spring)
      Construct a cone soft limit.
      Parameters:
      yLimitAngle - The limit angle from the Y-axis of the constraint frame
      zLimitAngle - The 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 PxJointLimitCone wrapPointer(long address)
    • arrayGet

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

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

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

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

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

      public void destroy()
    • getYAngle

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

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

    • setYAngle

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

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

    • getZAngle

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

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

    • setZAngle

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

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