Skip to content

Class: btCollisionShape

Ammo.btCollisionShape

Hierarchy

Constructors

Methods

Constructors

constructor

new btCollisionShape(): btCollisionShape

Returns

btCollisionShape

Methods

setLocalScaling

setLocalScaling(scaling): void

Parameters

NameType
scalingbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:273


getLocalScaling

getLocalScaling(): btVector3

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:274


calculateLocalInertia

calculateLocalInertia(mass, inertia): void

Parameters

NameType
massnumber
inertiabtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:275


setMargin

setMargin(margin): void

Parameters

NameType
marginnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:276


getMargin

getMargin(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:277

Released under the MIT License