Class: btRigidBody
Ammo.btRigidBody
Hierarchy
↳
btRigidBody
Constructors
Properties
Methods
- setAnisotropicFriction
- getCollisionShape
- setContactProcessingThreshold
- setActivationState
- forceActivationState
- activate
- isActive
- isKinematicObject
- isStaticObject
- isStaticOrKinematicObject
- getRestitution
- getFriction
- getRollingFriction
- setRestitution
- setFriction
- setRollingFriction
- getWorldTransform
- getCollisionFlags
- setCollisionFlags
- setWorldTransform
- setCollisionShape
- setCcdMotionThreshold
- setCcdSweptSphereRadius
- getUserIndex
- setUserIndex
- getUserPointer
- setUserPointer
- getBroadphaseHandle
- getCenterOfMassTransform
- setCenterOfMassTransform
- setSleepingThresholds
- getLinearDamping
- getAngularDamping
- setDamping
- setMassProps
- getLinearFactor
- setLinearFactor
- applyTorque
- applyLocalTorque
- applyForce
- applyCentralForce
- applyCentralLocalForce
- applyTorqueImpulse
- applyImpulse
- applyCentralImpulse
- updateInertiaTensor
- getLinearVelocity
- getAngularVelocity
- setLinearVelocity
- setAngularVelocity
- getMotionState
- setMotionState
- getAngularFactor
- setAngularFactor
- upcast
- getAabb
- applyGravity
- getGravity
- setGravity
- getBroadphaseProxy
- clearForces
Constructors
constructor
• new btRigidBody(constructionInfo
): btRigidBody
Parameters
Name | Type |
---|---|
constructionInfo | btRigidBodyConstructionInfo |
Returns
Overrides
Defined in
Properties
kB
• kB: number
Inherited from
Defined in
Methods
setAnisotropicFriction
▸ setAnisotropicFriction(anisotropicFriction
, frictionMode
): void
Parameters
Name | Type |
---|---|
anisotropicFriction | btVector3 |
frictionMode | number |
Returns
void
Inherited from
btCollisionObject.setAnisotropicFriction
Defined in
getCollisionShape
▸ getCollisionShape(): btCollisionShape
Returns
Inherited from
btCollisionObject.getCollisionShape
Defined in
setContactProcessingThreshold
▸ setContactProcessingThreshold(contactProcessingThreshold
): void
Parameters
Name | Type |
---|---|
contactProcessingThreshold | number |
Returns
void
Inherited from
btCollisionObject.setContactProcessingThreshold
Defined in
setActivationState
▸ setActivationState(newState
): void
Parameters
Name | Type |
---|---|
newState | number |
Returns
void
Inherited from
btCollisionObject.setActivationState
Defined in
forceActivationState
▸ forceActivationState(newState
): void
Parameters
Name | Type |
---|---|
newState | number |
Returns
void
Inherited from
btCollisionObject.forceActivationState
Defined in
activate
▸ activate(forceActivation?
): void
Parameters
Name | Type |
---|---|
forceActivation? | boolean |
Returns
void
Inherited from
Defined in
isActive
▸ isActive(): boolean
Returns
boolean
Inherited from
Defined in
isKinematicObject
▸ isKinematicObject(): boolean
Returns
boolean
Inherited from
btCollisionObject.isKinematicObject
Defined in
isStaticObject
▸ isStaticObject(): boolean
Returns
boolean
Inherited from
btCollisionObject.isStaticObject
Defined in
isStaticOrKinematicObject
▸ isStaticOrKinematicObject(): boolean
Returns
boolean
Inherited from
btCollisionObject.isStaticOrKinematicObject
Defined in
getRestitution
▸ getRestitution(): number
Returns
number
Inherited from
btCollisionObject.getRestitution
Defined in
getFriction
▸ getFriction(): number
Returns
number
Inherited from
Defined in
getRollingFriction
▸ getRollingFriction(): number
Returns
number
Inherited from
btCollisionObject.getRollingFriction
Defined in
setRestitution
▸ setRestitution(rest
): void
Parameters
Name | Type |
---|---|
rest | number |
Returns
void
Inherited from
btCollisionObject.setRestitution
Defined in
setFriction
▸ setFriction(frict
): void
Parameters
Name | Type |
---|---|
frict | number |
Returns
void
Inherited from
Defined in
setRollingFriction
▸ setRollingFriction(frict
): void
Parameters
Name | Type |
---|---|
frict | number |
Returns
void
Inherited from
btCollisionObject.setRollingFriction
Defined in
getWorldTransform
▸ getWorldTransform(): btTransform
Returns
Inherited from
btCollisionObject.getWorldTransform
Defined in
getCollisionFlags
▸ getCollisionFlags(): number
Returns
number
Inherited from
btCollisionObject.getCollisionFlags
Defined in
setCollisionFlags
▸ setCollisionFlags(flags
): void
Parameters
Name | Type |
---|---|
flags | number |
Returns
void
Inherited from
btCollisionObject.setCollisionFlags
Defined in
setWorldTransform
▸ setWorldTransform(worldTrans
): void
Parameters
Name | Type |
---|---|
worldTrans | btTransform |
Returns
void
Inherited from
btCollisionObject.setWorldTransform
Defined in
setCollisionShape
▸ setCollisionShape(collisionShape
): void
Parameters
Name | Type |
---|---|
collisionShape | btCollisionShape |
Returns
void
Inherited from
btCollisionObject.setCollisionShape
Defined in
setCcdMotionThreshold
▸ setCcdMotionThreshold(ccdMotionThreshold
): void
Parameters
Name | Type |
---|---|
ccdMotionThreshold | number |
Returns
void
Inherited from
btCollisionObject.setCcdMotionThreshold
Defined in
setCcdSweptSphereRadius
▸ setCcdSweptSphereRadius(radius
): void
Parameters
Name | Type |
---|---|
radius | number |
Returns
void
Inherited from
btCollisionObject.setCcdSweptSphereRadius
Defined in
getUserIndex
▸ getUserIndex(): number
Returns
number
Inherited from
btCollisionObject.getUserIndex
Defined in
setUserIndex
▸ setUserIndex(index
): void
Parameters
Name | Type |
---|---|
index | number |
Returns
void
Inherited from
btCollisionObject.setUserIndex
Defined in
getUserPointer
▸ getUserPointer(): unknown
Returns
unknown
Inherited from
btCollisionObject.getUserPointer
Defined in
setUserPointer
▸ setUserPointer(userPointer
): void
Parameters
Name | Type |
---|---|
userPointer | unknown |
Returns
void
Inherited from
btCollisionObject.setUserPointer
Defined in
getBroadphaseHandle
▸ getBroadphaseHandle(): btBroadphaseProxy
Returns
Inherited from
btCollisionObject.getBroadphaseHandle
Defined in
getCenterOfMassTransform
▸ getCenterOfMassTransform(): btTransform
Returns
Defined in
setCenterOfMassTransform
▸ setCenterOfMassTransform(xform
): void
Parameters
Name | Type |
---|---|
xform | btTransform |
Returns
void
Defined in
setSleepingThresholds
▸ setSleepingThresholds(linear
, angular
): void
Parameters
Name | Type |
---|---|
linear | number |
angular | number |
Returns
void
Defined in
getLinearDamping
▸ getLinearDamping(): number
Returns
number
Defined in
getAngularDamping
▸ getAngularDamping(): number
Returns
number
Defined in
setDamping
▸ setDamping(lin_damping
, ang_damping
): void
Parameters
Name | Type |
---|---|
lin_damping | number |
ang_damping | number |
Returns
void
Defined in
setMassProps
▸ setMassProps(mass
, inertia
): void
Parameters
Name | Type |
---|---|
mass | number |
inertia | btVector3 |
Returns
void
Defined in
getLinearFactor
▸ getLinearFactor(): btVector3
Returns
Defined in
setLinearFactor
▸ setLinearFactor(linearFactor
): void
Parameters
Name | Type |
---|---|
linearFactor | btVector3 |
Returns
void
Defined in
applyTorque
▸ applyTorque(torque
): void
Parameters
Name | Type |
---|---|
torque | btVector3 |
Returns
void
Defined in
applyLocalTorque
▸ applyLocalTorque(torque
): void
Parameters
Name | Type |
---|---|
torque | btVector3 |
Returns
void
Defined in
applyForce
▸ applyForce(force
, rel_pos
): void
Parameters
Name | Type |
---|---|
force | btVector3 |
rel_pos | btVector3 |
Returns
void
Defined in
applyCentralForce
▸ applyCentralForce(force
): void
Parameters
Name | Type |
---|---|
force | btVector3 |
Returns
void
Defined in
applyCentralLocalForce
▸ applyCentralLocalForce(force
): void
Parameters
Name | Type |
---|---|
force | btVector3 |
Returns
void
Defined in
applyTorqueImpulse
▸ applyTorqueImpulse(torque
): void
Parameters
Name | Type |
---|---|
torque | btVector3 |
Returns
void
Defined in
applyImpulse
▸ applyImpulse(impulse
, rel_pos
): void
Parameters
Name | Type |
---|---|
impulse | btVector3 |
rel_pos | btVector3 |
Returns
void
Defined in
applyCentralImpulse
▸ applyCentralImpulse(impulse
): void
Parameters
Name | Type |
---|---|
impulse | btVector3 |
Returns
void
Defined in
updateInertiaTensor
▸ updateInertiaTensor(): void
Returns
void
Defined in
getLinearVelocity
▸ getLinearVelocity(): btVector3
Returns
Defined in
getAngularVelocity
▸ getAngularVelocity(): btVector3
Returns
Defined in
setLinearVelocity
▸ setLinearVelocity(lin_vel
): void
Parameters
Name | Type |
---|---|
lin_vel | btVector3 |
Returns
void
Defined in
setAngularVelocity
▸ setAngularVelocity(ang_vel
): void
Parameters
Name | Type |
---|---|
ang_vel | btVector3 |
Returns
void
Defined in
getMotionState
▸ getMotionState(): btMotionState
Returns
Defined in
setMotionState
▸ setMotionState(motionState
): void
Parameters
Name | Type |
---|---|
motionState | btMotionState |
Returns
void
Defined in
getAngularFactor
▸ getAngularFactor(): btVector3
Returns
Defined in
setAngularFactor
▸ setAngularFactor(angularFactor
): void
Parameters
Name | Type |
---|---|
angularFactor | btVector3 |
Returns
void
Defined in
upcast
▸ upcast(colObj
): btRigidBody
Parameters
Name | Type |
---|---|
colObj | btCollisionObject |
Returns
Defined in
getAabb
▸ getAabb(aabbMin
, aabbMax
): void
Parameters
Name | Type |
---|---|
aabbMin | btVector3 |
aabbMax | btVector3 |
Returns
void
Defined in
applyGravity
▸ applyGravity(): void
Returns
void
Defined in
getGravity
▸ getGravity(): btVector3
Returns
Defined in
setGravity
▸ setGravity(acceleration
): void
Parameters
Name | Type |
---|---|
acceleration | btVector3 |
Returns
void
Defined in
getBroadphaseProxy
▸ getBroadphaseProxy(): btBroadphaseProxy
Returns
Defined in
clearForces
▸ clearForces(): void
Returns
void