java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.physics.PxActor
physx.physics.PxRigidActor
physx.physics.PxRigidBody
- Direct Known Subclasses:
PxArticulationLink,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 TypeMethodDescriptionvoidvoidaddForce(PxVec3 force, PxForceModeEnum mode) voidaddForce(PxVec3 force, PxForceModeEnum mode, boolean autowake) voidvoidaddTorque(PxVec3 torque, PxForceModeEnum mode) voidaddTorque(PxVec3 torque, PxForceModeEnum mode, boolean autowake) static PxRigidBodyarrayGet(long baseAddress, int index) voidclearForce(PxForceModeEnum mode) voidclearTorque(PxForceModeEnum mode) floatfloatfloatfloatfloatgetMass()floatfloatfloatfloatfloatvoidsetAngularDamping(float angDamp) voidsetCMassLocalPose(PxTransform pose) voidsetContactSlopCoefficient(float slopCoefficient) voidsetForceAndTorque(PxVec3 force, PxVec3 torque) voidsetForceAndTorque(PxVec3 force, PxVec3 torque, PxForceModeEnum mode) voidsetLinearDamping(float linDamp) voidsetMass(float mass) voidvoidsetMaxAngularVelocity(float maxAngVel) voidsetMaxContactImpulse(float maxImpulse) voidsetMaxDepenetrationVelocity(float biasClamp) voidsetMaxLinearVelocity(float maxLinVel) voidsetMinCCDAdvanceCoefficient(float advanceCoefficient) voidsetRigidBodyFlag(PxRigidBodyFlagEnum flag, boolean value) voidsetRigidBodyFlags(PxRigidBodyFlags inFlags) static PxRigidBodywrapPointer(long address) Methods 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
-
PxRigidBody
protected PxRigidBody() -
PxRigidBody
protected PxRigidBody(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
setCMassLocalPose
- Parameters:
pose- WebIDL type:PxTransform[Const, Ref]
-
getCMassLocalPose
- Returns:
- WebIDL type:
PxTransform[Value]
-
setMass
public void setMass(float mass) - Parameters:
mass- WebIDL type: float
-
getMass
public float getMass()- Returns:
- WebIDL type: float
-
getInvMass
public float getInvMass()- Returns:
- WebIDL type: float
-
setMassSpaceInertiaTensor
- Parameters:
m- WebIDL type:PxVec3[Const, Ref]
-
getMassSpaceInertiaTensor
- Returns:
- WebIDL type:
PxVec3[Value]
-
getMassSpaceInvInertiaTensor
- Returns:
- WebIDL type:
PxVec3[Value]
-
setLinearDamping
public void setLinearDamping(float linDamp) - Parameters:
linDamp- WebIDL type: float
-
getLinearDamping
public float getLinearDamping()- Returns:
- WebIDL type: float
-
setAngularDamping
public void setAngularDamping(float angDamp) - Parameters:
angDamp- WebIDL type: float
-
getAngularDamping
public float getAngularDamping()- Returns:
- WebIDL type: float
-
getLinearVelocity
- Returns:
- WebIDL type:
PxVec3[Value]
-
getAngularVelocity
- Returns:
- WebIDL type:
PxVec3[Value]
-
setMaxLinearVelocity
public void setMaxLinearVelocity(float maxLinVel) - Parameters:
maxLinVel- WebIDL type: float
-
getMaxLinearVelocity
public float getMaxLinearVelocity()- Returns:
- WebIDL type: float
-
setMaxAngularVelocity
public void setMaxAngularVelocity(float maxAngVel) - Parameters:
maxAngVel- WebIDL type: float
-
getMaxAngularVelocity
public float getMaxAngularVelocity()- Returns:
- WebIDL type: float
-
addForce
- Parameters:
force- WebIDL type:PxVec3[Const, Ref]
-
addForce
- Parameters:
force- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]
-
addForce
- Parameters:
force- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]autowake- WebIDL type: boolean
-
addTorque
- Parameters:
torque- WebIDL type:PxVec3[Const, Ref]
-
addTorque
- Parameters:
torque- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]
-
addTorque
- Parameters:
torque- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]autowake- WebIDL type: boolean
-
clearForce
- Parameters:
mode- WebIDL type:PxForceModeEnum[enum]
-
clearTorque
- Parameters:
mode- WebIDL type:PxForceModeEnum[enum]
-
setForceAndTorque
-
setForceAndTorque
- Parameters:
force- WebIDL type:PxVec3[Const, Ref]torque- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]
-
setRigidBodyFlag
- Parameters:
flag- WebIDL type:PxRigidBodyFlagEnum[enum]value- WebIDL type: boolean
-
setRigidBodyFlags
- Parameters:
inFlags- WebIDL type:PxRigidBodyFlags[Ref]
-
getRigidBodyFlags
- Returns:
- WebIDL type:
PxRigidBodyFlags[Value]
-
setMinCCDAdvanceCoefficient
public void setMinCCDAdvanceCoefficient(float advanceCoefficient) - Parameters:
advanceCoefficient- WebIDL type: float
-
getMinCCDAdvanceCoefficient
public float getMinCCDAdvanceCoefficient()- Returns:
- WebIDL type: float
-
setMaxDepenetrationVelocity
public void setMaxDepenetrationVelocity(float biasClamp) - Parameters:
biasClamp- WebIDL type: float
-
getMaxDepenetrationVelocity
public float getMaxDepenetrationVelocity()- Returns:
- WebIDL type: float
-
setMaxContactImpulse
public void setMaxContactImpulse(float maxImpulse) - Parameters:
maxImpulse- WebIDL type: float
-
getMaxContactImpulse
public float getMaxContactImpulse()- Returns:
- WebIDL type: float
-
setContactSlopCoefficient
public void setContactSlopCoefficient(float slopCoefficient) - Parameters:
slopCoefficient- WebIDL type: float
-
getContactSlopCoefficient
public float getContactSlopCoefficient()- Returns:
- WebIDL type: float
-