- See Also:
-
Nested Class Summary
Nested ClassesNested 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
ConstructorsModifierConstructorDescriptionPxArticulationDrive(float stiffness, float damping, float maxForce, PxArticulationDriveTypeEnum driveType) protectedPxArticulationDrive(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxArticulationDrivearrayGet(long baseAddress, int index) static PxArticulationDrivecreateAt(long address) static PxArticulationDrivecreateAt(long address, float stiffness, float damping, float maxForce, PxArticulationDriveTypeEnum driveType) static <T> PxArticulationDrivecreateAt(T allocator, NativeObject.Allocator<T> allocate) static <T> PxArticulationDrivecreateAt(T allocator, NativeObject.Allocator<T> allocate, float stiffness, float damping, float maxForce, PxArticulationDriveTypeEnum driveType) voiddestroy()floatThe drive damping, i.e.The drive type.floatDeprecated.Will be removed in a future version The drive force limit.floatThe drive stiffness, i.e.voidsetDamping(float value) The drive damping, i.e.voidThe drive type.voidsetMaxForce(float value) Deprecated.Will be removed in a future version The drive force limit.voidsetStiffness(float value) The drive stiffness, i.e.static PxArticulationDrivewrapPointer(long address) Methods 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
-
PxArticulationDrive
protected PxArticulationDrive(long address) -
PxArticulationDrive
public PxArticulationDrive() -
PxArticulationDrive
public PxArticulationDrive(float stiffness, float damping, float maxForce, PxArticulationDriveTypeEnum driveType) - Parameters:
stiffness- WebIDL type: floatdamping- WebIDL type: floatmaxForce- WebIDL type: floatdriveType- WebIDL type:PxArticulationDriveTypeEnum[enum]
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxArticulationDrive
-
createAt
- 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.- Returns:
- Stack allocated object of PxArticulationDrive
-
createAt
public static PxArticulationDrive createAt(long address, float stiffness, float damping, float maxForce, PxArticulationDriveTypeEnum driveType) - Parameters:
address- Pre-allocated memory, where the object is created.stiffness- WebIDL type: floatdamping- WebIDL type: floatmaxForce- WebIDL type: floatdriveType- WebIDL type:PxArticulationDriveTypeEnum[enum]- Returns:
- Stack allocated object of PxArticulationDrive
-
createAt
public static <T> PxArticulationDrive createAt(T allocator, NativeObject.Allocator<T> allocate, float stiffness, float damping, float maxForce, PxArticulationDriveTypeEnum driveType) - 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.stiffness- WebIDL type: floatdamping- WebIDL type: floatmaxForce- WebIDL type: floatdriveType- WebIDL type:PxArticulationDriveTypeEnum[enum]- Returns:
- Stack allocated object of PxArticulationDrive
-
destroy
public void destroy() -
getStiffness
public float getStiffness()The drive stiffness, i.e. the proportional gain of the implicit PD controller.See manual for further information, and the drives' implicit spring-damper (i.e. PD control) implementation in particular.
Units: (distance = linear scene units)
Rotational axis: torque/rad if driveType = PxArticulationDriveType::eFORCE; or (rad/s^2)/rad if driveType = PxArticulationDriveType::eACCELERATION
Translational axis: force/distance if driveType = PxArticulationDriveType::eFORCE; or (distance/s^2)/distance if driveType = PxArticulationDriveType::eACCELERATION
Range: [0, PX_MAX_F32]
Default: 0.0f -
setStiffness
public void setStiffness(float value) The drive stiffness, i.e. the proportional gain of the implicit PD controller.See manual for further information, and the drives' implicit spring-damper (i.e. PD control) implementation in particular.
Units: (distance = linear scene units)
Rotational axis: torque/rad if driveType = PxArticulationDriveType::eFORCE; or (rad/s^2)/rad if driveType = PxArticulationDriveType::eACCELERATION
Translational axis: force/distance if driveType = PxArticulationDriveType::eFORCE; or (distance/s^2)/distance if driveType = PxArticulationDriveType::eACCELERATION
Range: [0, PX_MAX_F32]
Default: 0.0f -
getDamping
public float getDamping()The drive damping, i.e. the derivative gain of the implicit PD controller.See manual for further information, and the drives' implicit spring-damper (i.e. PD control) implementation in particular.
Units: (distance = linear scene units)
Rotational axis: torque/(rad/s) if driveType = PxArticulationDriveType::eFORCE; or (rad/s^2)/(rad/s) if driveType = PxArticulationDriveType::eACCELERATION
Translational axis: force/(distance/s) if driveType = PxArticulationDriveType::eFORCE; or (distance/s^2)/(distance/s) if driveType = PxArticulationDriveType::eACCELERATION
Range: [0, PX_MAX_F32]
Default: 0.0f -
setDamping
public void setDamping(float value) The drive damping, i.e. the derivative gain of the implicit PD controller.See manual for further information, and the drives' implicit spring-damper (i.e. PD control) implementation in particular.
Units: (distance = linear scene units)
Rotational axis: torque/(rad/s) if driveType = PxArticulationDriveType::eFORCE; or (rad/s^2)/(rad/s) if driveType = PxArticulationDriveType::eACCELERATION
Translational axis: force/(distance/s) if driveType = PxArticulationDriveType::eFORCE; or (distance/s^2)/(distance/s) if driveType = PxArticulationDriveType::eACCELERATION
Range: [0, PX_MAX_F32]
Default: 0.0f -
getMaxForce
Deprecated.Will be removed in a future version The drive force limit.- The limit is enforced regardless of the drive type #PxArticulationDriveType. - The limit corresponds to a force (linear axis) or torque (rotational axis) if PxArticulationFlag::eDRIVE_LIMITS_ARE_FORCES is set, and to an impulse (force|torque * dt) otherwise.
Range: [0, PX_MAX_F32]
Default: 0.0f -
setMaxForce
Deprecated.Will be removed in a future version The drive force limit.- The limit is enforced regardless of the drive type #PxArticulationDriveType. - The limit corresponds to a force (linear axis) or torque (rotational axis) if PxArticulationFlag::eDRIVE_LIMITS_ARE_FORCES is set, and to an impulse (force|torque * dt) otherwise.
Range: [0, PX_MAX_F32]
Default: 0.0f -
getDriveType
The drive type. -
setDriveType
The drive type.
-