Skip to content

Class: btCompoundShape

Ammo.btCompoundShape

Hierarchy

Constructors

Methods

Constructors

constructor

new btCompoundShape(enableDynamicAabbTree?): btCompoundShape

Parameters

NameType
enableDynamicAabbTree?boolean

Returns

btCompoundShape

Overrides

btCollisionShape.constructor

Defined in

packages/ammo/ammo.d.ts:379

Methods

setLocalScaling

setLocalScaling(scaling): void

Parameters

NameType
scalingbtVector3

Returns

void

Inherited from

btCollisionShape.setLocalScaling

Defined in

packages/ammo/ammo.d.ts:273


getLocalScaling

getLocalScaling(): btVector3

Returns

btVector3

Inherited from

btCollisionShape.getLocalScaling

Defined in

packages/ammo/ammo.d.ts:274


calculateLocalInertia

calculateLocalInertia(mass, inertia): void

Parameters

NameType
massnumber
inertiabtVector3

Returns

void

Inherited from

btCollisionShape.calculateLocalInertia

Defined in

packages/ammo/ammo.d.ts:275


addChildShape

addChildShape(localTransform, shape): void

Parameters

NameType
localTransformbtTransform
shapebtCollisionShape

Returns

void

Defined in

packages/ammo/ammo.d.ts:380


removeChildShape

removeChildShape(shape): void

Parameters

NameType
shapebtCollisionShape

Returns

void

Defined in

packages/ammo/ammo.d.ts:381


removeChildShapeByIndex

removeChildShapeByIndex(childShapeindex): void

Parameters

NameType
childShapeindexnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:382


getNumChildShapes

getNumChildShapes(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:383


getChildShape

getChildShape(index): btCollisionShape

Parameters

NameType
indexnumber

Returns

btCollisionShape

Defined in

packages/ammo/ammo.d.ts:384


updateChildTransform

updateChildTransform(childIndex, newChildTransform, shouldRecalculateLocalAabb?): void

Parameters

NameType
childIndexnumber
newChildTransformbtTransform
shouldRecalculateLocalAabb?boolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:385


setMargin

setMargin(margin): void

Parameters

NameType
marginnumber

Returns

void

Overrides

btCollisionShape.setMargin

Defined in

packages/ammo/ammo.d.ts:386


getMargin

getMargin(): number

Returns

number

Overrides

btCollisionShape.getMargin

Defined in

packages/ammo/ammo.d.ts:387