java.lang.Object
physx.NativeObject
physx.extensions.PxSpring
physx.extensions.PxD6JointDrive
parameters for configuring the drive model of a PxD6Joint
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
ConstructorsModifierConstructorDescriptiondefault constructor for PxD6JointDrive.PxD6JointDrive(float driveStiffness, float driveDamping, float driveForceLimit) constructor a PxD6JointDrive.PxD6JointDrive(float driveStiffness, float driveDamping, float driveForceLimit, boolean isAcceleration) constructor a PxD6JointDrive.protectedPxD6JointDrive(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxD6JointDrivearrayGet(long baseAddress, int index) voiddestroy()getFlags()the joint drive flagsfloatthe force limit of the drive - may be an impulse or a force depending on PxConstraintFlag::eDRIVE_LIMITS_ARE_FORCESvoidsetFlags(PxD6JointDriveFlags value) the joint drive flagsvoidsetForceLimit(float value) the force limit of the drive - may be an impulse or a force depending on PxConstraintFlag::eDRIVE_LIMITS_ARE_FORCESstatic PxD6JointDrivewrapPointer(long address) Methods inherited from class physx.extensions.PxSpring
createAt, createAt, getDamping, getStiffness, setDamping, setStiffnessMethods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
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 springdriveForceLimit- 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 springdriveForceLimit- The maximum impulse or force that can be exerted by the driveisAcceleration- Whether the drive is an acceleration drive or a force drive
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
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
the joint drive flags -
setFlags
the joint drive flags
-