java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.physics.PxActor
physx.physics.PxRigidActor
physx.physics.PxRigidBody
physx.physics.PxRigidDynamic
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxRigidDynamicarrayGet(long baseAddress, int index) floatbooleangetKinematicTarget(PxTransform target) floatfloatfloatbooleanvoidvoidsetAngularVelocity(PxVec3 angVel) voidsetAngularVelocity(PxVec3 angVel, boolean autowake) voidsetContactReportThreshold(float threshold) voidsetKinematicTarget(PxTransform destination) voidsetLinearVelocity(PxVec3 linVel) voidsetLinearVelocity(PxVec3 linVel, boolean autowake) voidsetRigidDynamicLockFlag(PxRigidDynamicLockFlagEnum flag, boolean value) voidvoidsetSleepThreshold(float threshold) voidsetSolverIterationCounts(int minPositionIters) voidsetSolverIterationCounts(int minPositionIters, int minVelocityIters) voidsetStabilizationThreshold(float threshold) voidsetWakeCounter(float wakeCounterValue) voidwakeUp()static PxRigidDynamicwrapPointer(long address) Methods inherited from class physx.physics.PxRigidBody
addForce, addForce, addForce, addTorque, addTorque, addTorque, clearForce, clearTorque, getAngularDamping, getAngularVelocity, getCMassLocalPose, getContactSlopCoefficient, getInvMass, getLinearDamping, getLinearVelocity, getMass, getMassSpaceInertiaTensor, getMassSpaceInvInertiaTensor, getMaxAngularVelocity, getMaxContactImpulse, getMaxDepenetrationVelocity, getMaxLinearVelocity, getMinCCDAdvanceCoefficient, getRigidBodyFlags, setAngularDamping, setCMassLocalPose, setContactSlopCoefficient, setForceAndTorque, setForceAndTorque, setLinearDamping, setMass, setMassSpaceInertiaTensor, setMaxAngularVelocity, setMaxContactImpulse, setMaxDepenetrationVelocity, setMaxLinearVelocity, setMinCCDAdvanceCoefficient, setRigidBodyFlag, setRigidBodyFlagsMethods inherited from class physx.physics.PxRigidActor
attachShape, detachShape, detachShape, getGlobalPose, getNbConstraints, getNbShapes, setGlobalPose, setGlobalPoseMethods inherited from class physx.physics.PxActor
getActorFlags, getDominanceGroup, getName, getOwnerClient, getScene, getType, getUserData, getWorldBounds, getWorldBounds, setActorFlag, setActorFlags, setDominanceGroup, setName, setOwnerClient, setUserDataMethods inherited from class physx.common.PxBase
getBaseFlags, getConcreteType, getConcreteTypeName, isReleasable, release, setBaseFlag, setBaseFlagsMethods 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
-
PxRigidDynamic
protected PxRigidDynamic() -
PxRigidDynamic
protected PxRigidDynamic(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
setKinematicTarget
- Parameters:
destination- WebIDL type:PxTransform[Const, Ref]
-
getKinematicTarget
- Parameters:
target- WebIDL type:PxTransform[Ref]- Returns:
- WebIDL type: boolean
-
isSleeping
public boolean isSleeping()- Returns:
- WebIDL type: boolean
-
setSleepThreshold
public void setSleepThreshold(float threshold) - Parameters:
threshold- WebIDL type: float
-
getSleepThreshold
public float getSleepThreshold()- Returns:
- WebIDL type: float
-
setStabilizationThreshold
public void setStabilizationThreshold(float threshold) - Parameters:
threshold- WebIDL type: float
-
getStabilizationThreshold
public float getStabilizationThreshold()- Returns:
- WebIDL type: float
-
getRigidDynamicLockFlags
- Returns:
- WebIDL type:
PxRigidDynamicLockFlags[Value]
-
setRigidDynamicLockFlag
- Parameters:
flag- WebIDL type:PxRigidDynamicLockFlagEnum[enum]value- WebIDL type: boolean
-
setRigidDynamicLockFlags
- Parameters:
flags- WebIDL type:PxRigidDynamicLockFlags[Ref]
-
setLinearVelocity
- Parameters:
linVel- WebIDL type:PxVec3[Const, Ref]
-
setLinearVelocity
- Parameters:
linVel- WebIDL type:PxVec3[Const, Ref]autowake- WebIDL type: boolean
-
setAngularVelocity
- Parameters:
angVel- WebIDL type:PxVec3[Const, Ref]
-
setAngularVelocity
- Parameters:
angVel- WebIDL type:PxVec3[Const, Ref]autowake- WebIDL type: boolean
-
setWakeCounter
public void setWakeCounter(float wakeCounterValue) - Parameters:
wakeCounterValue- WebIDL type: float
-
getWakeCounter
public float getWakeCounter()- Returns:
- WebIDL type: float
-
wakeUp
public void wakeUp() -
putToSleep
public void putToSleep() -
setSolverIterationCounts
public void setSolverIterationCounts(int minPositionIters) - Parameters:
minPositionIters- WebIDL type: unsigned long
-
setSolverIterationCounts
public void setSolverIterationCounts(int minPositionIters, int minVelocityIters) - Parameters:
minPositionIters- WebIDL type: unsigned longminVelocityIters- WebIDL type: unsigned long
-
getContactReportThreshold
public float getContactReportThreshold()- Returns:
- WebIDL type: float
-
setContactReportThreshold
public void setContactReportThreshold(float threshold) - Parameters:
threshold- WebIDL type: float
-