Class PxD6JointDrive


public class PxD6JointDrive extends PxSpring
parameters for configuring the drive model of a PxD6Joint
See Also:
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxD6JointDrive

      protected PxD6JointDrive(long address)
    • PxD6JointDrive

      public PxD6JointDrive()
      default constructor for PxD6JointDrive.
    • PxD6JointDrive

      public PxD6JointDrive(float driveStiffness, float driveDamping, float driveForceLimit)
      constructor a PxD6JointDrive.
      Parameters:
      driveStiffness - The stiffness of the drive spring.
      driveDamping - The damping of the drive spring
      driveForceLimit - The maximum impulse or force that can be exerted by the drive
    • PxD6JointDrive

      public PxD6JointDrive(float driveStiffness, float driveDamping, float driveForceLimit, boolean isAcceleration)
      constructor a PxD6JointDrive.
      Parameters:
      driveStiffness - The stiffness of the drive spring.
      driveDamping - The damping of the drive spring
      driveForceLimit - The maximum impulse or force that can be exerted by the drive
      isAcceleration - Whether the drive is an acceleration drive or a force drive
  • Method Details

    • wrapPointer

      public static PxD6JointDrive wrapPointer(long address)
    • arrayGet

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

      public void destroy()
      Overrides:
      destroy in class PxSpring
    • getForceLimit

      public float getForceLimit()
      the force limit of the drive - may be an impulse or a force depending on PxConstraintFlag::eDRIVE_LIMITS_ARE_FORCES
    • setForceLimit

      public void setForceLimit(float value)
      the force limit of the drive - may be an impulse or a force depending on PxConstraintFlag::eDRIVE_LIMITS_ARE_FORCES
    • getFlags

      public PxD6JointDriveFlags getFlags()
      the joint drive flags
    • setFlags

      public void setFlags(PxD6JointDriveFlags value)
      the joint drive flags