java.lang.Object
physx.NativeObject
physx.physics.PxArticulationDrive
-
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
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()floatfloatfloatvoidsetDamping(float value) voidvoidsetMaxForce(float value) voidsetStiffness(float value) 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()- Returns:
- WebIDL type: float
-
setStiffness
public void setStiffness(float value) - Parameters:
value- WebIDL type: float
-
getDamping
public float getDamping()- Returns:
- WebIDL type: float
-
setDamping
public void setDamping(float value) - Parameters:
value- WebIDL type: float
-
getMaxForce
public float getMaxForce()- Returns:
- WebIDL type: float
-
setMaxForce
public void setMaxForce(float value) - Parameters:
value- WebIDL type: float
-
getDriveType
- Returns:
- WebIDL type:
PxArticulationDriveTypeEnum[enum]
-
setDriveType
- Parameters:
value- WebIDL type:PxArticulationDriveTypeEnum[enum]
-