Class PxPrismaticJoint


public class PxPrismaticJoint extends PxJoint
A prismatic joint permits relative translational movement between two bodies along an axis, but no relative rotational movement.

the axis on each body is defined as the line containing the origin of the joint frame and extending along the x-axis of that frame

\image html prismJoint.png

See Also:
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxPrismaticJoint

      protected PxPrismaticJoint()
    • PxPrismaticJoint

      protected PxPrismaticJoint(long address)
  • Method Details

    • wrapPointer

      public static PxPrismaticJoint wrapPointer(long address)
    • arrayGet

      public static PxPrismaticJoint arrayGet(long baseAddress, int index)
    • destroy

      public void destroy()
    • getPosition

      public float getPosition()
      returns the displacement of the joint along its axis.
    • getVelocity

      public float getVelocity()
      returns the velocity of the joint along its axis
    • setLimit

      public void setLimit(PxJointLinearLimitPair limit)
      sets the joint limit parameters.

      The limit range is [-PX_MAX_F32, PX_MAX_F32], but note that the width of the limit (upper-lower) must also be a valid float.

      See Also:
    • setPrismaticJointFlags

      public void setPrismaticJointFlags(PxPrismaticJointFlags flags)
      Set the flags specific to the Prismatic Joint.

      Default PxPrismaticJointFlags(0)

      Parameters:
      flags - The joint flags.
    • setPrismaticJointFlag

      public void setPrismaticJointFlag(PxPrismaticJointFlagEnum flag, boolean value)
      Set a single flag specific to a Prismatic Joint to true or false.
      Parameters:
      flag - The flag to set or clear.
      value - The value to which to set the flag
    • getPrismaticJointFlags

      public PxPrismaticJointFlags getPrismaticJointFlags()
      Get the flags specific to the Prismatic Joint.
      Returns:
      the joint flags
    • setProjectionLinearTolerance

      @Deprecated public void setProjectionLinearTolerance(float tolerance)
      Deprecated.
      Set the linear tolerance threshold for projection.

      If the joint separates by more than this distance along its locked degrees of freedom, the solver will move the bodies to close the distance.

      Setting a very small tolerance may result in simulation jitter or other artifacts.

      Sometimes it is not possible to project (for example when the joints form a cycle).

      This value must be nonnegative.

      Range: [0, PX_MAX_F32)
      Default: 1e10f

      Parameters:
      tolerance - the linear tolerance threshold
      See Also:
    • getProjectionLinearTolerance

      @Deprecated public float getProjectionLinearTolerance()
      Deprecated.
      Get the linear tolerance threshold for projection.
      Returns:
      the linear tolerance threshold in radians
      See Also:
    • setProjectionAngularTolerance

      @Deprecated public void setProjectionAngularTolerance(float tolerance)
      Deprecated.
      Set the angular tolerance threshold for projection. Projection is enabled if PxConstraintFlag::ePROJECTION is set for the joint.

      If the joint separates by more than this distance along its locked degrees of freedom, the solver will move the bodies to close the distance.

      Setting a very small tolerance may result in simulation jitter or other artifacts.

      Sometimes it is not possible to project (for example when the joints form a cycle).

      Range: [0, PX_MAX_F32)
      Default: Pi

      Parameters:
      tolerance - the linear tolerance threshold
      See Also:
    • getProjectionAngularTolerance

      @Deprecated public float getProjectionAngularTolerance()
      Deprecated.
      Get the angular tolerance threshold for projection.
      See Also: