Skip to content

Class: btRigidBody

Ammo.btRigidBody

Hierarchy

Constructors

Properties

Methods

Constructors

constructor

new btRigidBody(constructionInfo): btRigidBody

Parameters

NameType
constructionInfobtRigidBodyConstructionInfo

Returns

btRigidBody

Overrides

btCollisionObject.constructor

Defined in

packages/ammo/ammo.d.ts:497

Properties

kB

kB: number

Inherited from

btCollisionObject.kB

Defined in

packages/ammo/ammo.d.ts:128

Methods

setAnisotropicFriction

setAnisotropicFriction(anisotropicFriction, frictionMode): void

Parameters

NameType
anisotropicFrictionbtVector3
frictionModenumber

Returns

void

Inherited from

btCollisionObject.setAnisotropicFriction

Defined in

packages/ammo/ammo.d.ts:129


getCollisionShape

getCollisionShape(): btCollisionShape

Returns

btCollisionShape

Inherited from

btCollisionObject.getCollisionShape

Defined in

packages/ammo/ammo.d.ts:130


setContactProcessingThreshold

setContactProcessingThreshold(contactProcessingThreshold): void

Parameters

NameType
contactProcessingThresholdnumber

Returns

void

Inherited from

btCollisionObject.setContactProcessingThreshold

Defined in

packages/ammo/ammo.d.ts:131


setActivationState

setActivationState(newState): void

Parameters

NameType
newStatenumber

Returns

void

Inherited from

btCollisionObject.setActivationState

Defined in

packages/ammo/ammo.d.ts:132


forceActivationState

forceActivationState(newState): void

Parameters

NameType
newStatenumber

Returns

void

Inherited from

btCollisionObject.forceActivationState

Defined in

packages/ammo/ammo.d.ts:133


activate

activate(forceActivation?): void

Parameters

NameType
forceActivation?boolean

Returns

void

Inherited from

btCollisionObject.activate

Defined in

packages/ammo/ammo.d.ts:134


isActive

isActive(): boolean

Returns

boolean

Inherited from

btCollisionObject.isActive

Defined in

packages/ammo/ammo.d.ts:135


isKinematicObject

isKinematicObject(): boolean

Returns

boolean

Inherited from

btCollisionObject.isKinematicObject

Defined in

packages/ammo/ammo.d.ts:136


isStaticObject

isStaticObject(): boolean

Returns

boolean

Inherited from

btCollisionObject.isStaticObject

Defined in

packages/ammo/ammo.d.ts:137


isStaticOrKinematicObject

isStaticOrKinematicObject(): boolean

Returns

boolean

Inherited from

btCollisionObject.isStaticOrKinematicObject

Defined in

packages/ammo/ammo.d.ts:138


getRestitution

getRestitution(): number

Returns

number

Inherited from

btCollisionObject.getRestitution

Defined in

packages/ammo/ammo.d.ts:139


getFriction

getFriction(): number

Returns

number

Inherited from

btCollisionObject.getFriction

Defined in

packages/ammo/ammo.d.ts:140


getRollingFriction

getRollingFriction(): number

Returns

number

Inherited from

btCollisionObject.getRollingFriction

Defined in

packages/ammo/ammo.d.ts:141


setRestitution

setRestitution(rest): void

Parameters

NameType
restnumber

Returns

void

Inherited from

btCollisionObject.setRestitution

Defined in

packages/ammo/ammo.d.ts:142


setFriction

setFriction(frict): void

Parameters

NameType
frictnumber

Returns

void

Inherited from

btCollisionObject.setFriction

Defined in

packages/ammo/ammo.d.ts:143


setRollingFriction

setRollingFriction(frict): void

Parameters

NameType
frictnumber

Returns

void

Inherited from

btCollisionObject.setRollingFriction

Defined in

packages/ammo/ammo.d.ts:144


getWorldTransform

getWorldTransform(): btTransform

Returns

btTransform

Inherited from

btCollisionObject.getWorldTransform

Defined in

packages/ammo/ammo.d.ts:145


getCollisionFlags

getCollisionFlags(): number

Returns

number

Inherited from

btCollisionObject.getCollisionFlags

Defined in

packages/ammo/ammo.d.ts:146


setCollisionFlags

setCollisionFlags(flags): void

Parameters

NameType
flagsnumber

Returns

void

Inherited from

btCollisionObject.setCollisionFlags

Defined in

packages/ammo/ammo.d.ts:147


setWorldTransform

setWorldTransform(worldTrans): void

Parameters

NameType
worldTransbtTransform

Returns

void

Inherited from

btCollisionObject.setWorldTransform

Defined in

packages/ammo/ammo.d.ts:148


setCollisionShape

setCollisionShape(collisionShape): void

Parameters

NameType
collisionShapebtCollisionShape

Returns

void

Inherited from

btCollisionObject.setCollisionShape

Defined in

packages/ammo/ammo.d.ts:149


setCcdMotionThreshold

setCcdMotionThreshold(ccdMotionThreshold): void

Parameters

NameType
ccdMotionThresholdnumber

Returns

void

Inherited from

btCollisionObject.setCcdMotionThreshold

Defined in

packages/ammo/ammo.d.ts:150


setCcdSweptSphereRadius

setCcdSweptSphereRadius(radius): void

Parameters

NameType
radiusnumber

Returns

void

Inherited from

btCollisionObject.setCcdSweptSphereRadius

Defined in

packages/ammo/ammo.d.ts:151


getUserIndex

getUserIndex(): number

Returns

number

Inherited from

btCollisionObject.getUserIndex

Defined in

packages/ammo/ammo.d.ts:152


setUserIndex

setUserIndex(index): void

Parameters

NameType
indexnumber

Returns

void

Inherited from

btCollisionObject.setUserIndex

Defined in

packages/ammo/ammo.d.ts:153


getUserPointer

getUserPointer(): unknown

Returns

unknown

Inherited from

btCollisionObject.getUserPointer

Defined in

packages/ammo/ammo.d.ts:154


setUserPointer

setUserPointer(userPointer): void

Parameters

NameType
userPointerunknown

Returns

void

Inherited from

btCollisionObject.setUserPointer

Defined in

packages/ammo/ammo.d.ts:155


getBroadphaseHandle

getBroadphaseHandle(): btBroadphaseProxy

Returns

btBroadphaseProxy

Inherited from

btCollisionObject.getBroadphaseHandle

Defined in

packages/ammo/ammo.d.ts:156


getCenterOfMassTransform

getCenterOfMassTransform(): btTransform

Returns

btTransform

Defined in

packages/ammo/ammo.d.ts:498


setCenterOfMassTransform

setCenterOfMassTransform(xform): void

Parameters

NameType
xformbtTransform

Returns

void

Defined in

packages/ammo/ammo.d.ts:499


setSleepingThresholds

setSleepingThresholds(linear, angular): void

Parameters

NameType
linearnumber
angularnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:500


getLinearDamping

getLinearDamping(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:501


getAngularDamping

getAngularDamping(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:502


setDamping

setDamping(lin_damping, ang_damping): void

Parameters

NameType
lin_dampingnumber
ang_dampingnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:503


setMassProps

setMassProps(mass, inertia): void

Parameters

NameType
massnumber
inertiabtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:504


getLinearFactor

getLinearFactor(): btVector3

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:505


setLinearFactor

setLinearFactor(linearFactor): void

Parameters

NameType
linearFactorbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:506


applyTorque

applyTorque(torque): void

Parameters

NameType
torquebtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:507


applyLocalTorque

applyLocalTorque(torque): void

Parameters

NameType
torquebtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:508


applyForce

applyForce(force, rel_pos): void

Parameters

NameType
forcebtVector3
rel_posbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:509


applyCentralForce

applyCentralForce(force): void

Parameters

NameType
forcebtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:510


applyCentralLocalForce

applyCentralLocalForce(force): void

Parameters

NameType
forcebtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:511


applyTorqueImpulse

applyTorqueImpulse(torque): void

Parameters

NameType
torquebtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:512


applyImpulse

applyImpulse(impulse, rel_pos): void

Parameters

NameType
impulsebtVector3
rel_posbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:513


applyCentralImpulse

applyCentralImpulse(impulse): void

Parameters

NameType
impulsebtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:514


updateInertiaTensor

updateInertiaTensor(): void

Returns

void

Defined in

packages/ammo/ammo.d.ts:515


getLinearVelocity

getLinearVelocity(): btVector3

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:516


getAngularVelocity

getAngularVelocity(): btVector3

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:517


setLinearVelocity

setLinearVelocity(lin_vel): void

Parameters

NameType
lin_velbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:518


setAngularVelocity

setAngularVelocity(ang_vel): void

Parameters

NameType
ang_velbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:519


getMotionState

getMotionState(): btMotionState

Returns

btMotionState

Defined in

packages/ammo/ammo.d.ts:520


setMotionState

setMotionState(motionState): void

Parameters

NameType
motionStatebtMotionState

Returns

void

Defined in

packages/ammo/ammo.d.ts:521


getAngularFactor

getAngularFactor(): btVector3

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:522


setAngularFactor

setAngularFactor(angularFactor): void

Parameters

NameType
angularFactorbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:523


upcast

upcast(colObj): btRigidBody

Parameters

NameType
colObjbtCollisionObject

Returns

btRigidBody

Defined in

packages/ammo/ammo.d.ts:524


getAabb

getAabb(aabbMin, aabbMax): void

Parameters

NameType
aabbMinbtVector3
aabbMaxbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:525


applyGravity

applyGravity(): void

Returns

void

Defined in

packages/ammo/ammo.d.ts:526


getGravity

getGravity(): btVector3

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:527


setGravity

setGravity(acceleration): void

Parameters

NameType
accelerationbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:528


getBroadphaseProxy

getBroadphaseProxy(): btBroadphaseProxy

Returns

btBroadphaseProxy

Defined in

packages/ammo/ammo.d.ts:529


clearForces

clearForces(): void

Returns

void

Defined in

packages/ammo/ammo.d.ts:530

Released under the MIT License