Package physx.physics
Class PxRigidBody
- java.lang.Object
-
- physx.NativeObject
-
- physx.common.PxBase
-
- physx.physics.PxActor
-
- physx.physics.PxRigidActor
-
- physx.physics.PxRigidBody
-
- Direct Known Subclasses:
PxArticulationLink,PxRigidDynamic
public class PxRigidBody extends PxRigidActor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPxRigidBody()protectedPxRigidBody(long address)
-
Method Summary
-
Methods inherited from class physx.physics.PxRigidActor
attachShape, detachShape, detachShape, getGlobalPose, getNbShapes, setGlobalPose, setGlobalPose
-
Methods inherited from class physx.physics.PxActor
getActorFlags, getDominanceGroup, getName, getOwnerClient, getScene, getType, getUserData, getWorldBounds, getWorldBounds, setActorFlags, setDominanceGroup, setName, setOwnerClient, setUserData
-
Methods inherited from class physx.common.PxBase
getBaseFlags, getConcreteType, getConcreteTypeName, isReleasable, release, setBaseFlag, setBaseFlags
-
Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
-
-
-
Method Detail
-
wrapPointer
public static PxRigidBody wrapPointer(long address)
-
setCMassLocalPose
public void setCMassLocalPose(PxTransform pose)
- Parameters:
pose- WebIDL type:PxTransform[Const, Ref]
-
getCMassLocalPose
public PxTransform 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
public void setMassSpaceInertiaTensor(PxVec3 m)
- Parameters:
m- WebIDL type:PxVec3[Const, Ref]
-
getMassSpaceInertiaTensor
public PxVec3 getMassSpaceInertiaTensor()
- Returns:
- WebIDL type:
PxVec3[Value]
-
getMassSpaceInvInertiaTensor
public PxVec3 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
-
setLinearVelocity
public void setLinearVelocity(PxVec3 linVel)
- Parameters:
linVel- WebIDL type:PxVec3[Const, Ref]
-
setLinearVelocity
public void setLinearVelocity(PxVec3 linVel, boolean autowake)
- Parameters:
linVel- WebIDL type:PxVec3[Const, Ref]autowake- WebIDL type: boolean
-
setAngularVelocity
public void setAngularVelocity(PxVec3 angVel)
- Parameters:
angVel- WebIDL type:PxVec3[Const, Ref]
-
setAngularVelocity
public void setAngularVelocity(PxVec3 angVel, boolean autowake)
- Parameters:
angVel- WebIDL type:PxVec3[Const, Ref]autowake- WebIDL type: boolean
-
getMaxLinearVelocity
public float getMaxLinearVelocity()
- Returns:
- WebIDL type: float
-
setMaxLinearVelocity
public void setMaxLinearVelocity(float maxLinVel)
- Parameters:
maxLinVel- WebIDL type: float
-
getMaxAngularVelocity
public float getMaxAngularVelocity()
- Returns:
- WebIDL type: float
-
setMaxAngularVelocity
public void setMaxAngularVelocity(float maxAngVel)
- Parameters:
maxAngVel- WebIDL type: float
-
addForce
public void addForce(PxVec3 force, int mode)
- Parameters:
force- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]
-
addForce
public void addForce(PxVec3 force, int mode, boolean autowake)
- Parameters:
force- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]autowake- WebIDL type: boolean
-
addTorque
public void addTorque(PxVec3 torque)
- Parameters:
torque- WebIDL type:PxVec3[Const, Ref]
-
addTorque
public void addTorque(PxVec3 torque, int mode)
- Parameters:
torque- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]
-
addTorque
public void addTorque(PxVec3 torque, int mode, boolean autowake)
- Parameters:
torque- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]autowake- WebIDL type: boolean
-
clearForce
public void clearForce(int mode)
- Parameters:
mode- WebIDL type:PxForceModeEnum[enum]
-
clearTorque
public void clearTorque(int mode)
- Parameters:
mode- WebIDL type:PxForceModeEnum[enum]
-
setForceAndTorque
public void setForceAndTorque(PxVec3 force, PxVec3 torque, int mode)
- Parameters:
force- WebIDL type:PxVec3[Const, Ref]torque- WebIDL type:PxVec3[Const, Ref]mode- WebIDL type:PxForceModeEnum[enum]
-
setRigidBodyFlag
public void setRigidBodyFlag(int flag, boolean value)- Parameters:
flag- WebIDL type:PxRigidBodyFlagEnum[enum]value- WebIDL type: boolean
-
setRigidBodyFlags
public void setRigidBodyFlags(PxRigidBodyFlags inFlags)
- Parameters:
inFlags- WebIDL type:PxRigidBodyFlags[Ref]
-
getRigidBodyFlags
public PxRigidBodyFlags 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
-
getInternalIslandNodeIndex
public int getInternalIslandNodeIndex()
- Returns:
- WebIDL type: unsigned long
-
-