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, 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)
    • 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