Skip to content

Class: btCapsuleShape

Ammo.btCapsuleShape

Hierarchy

Constructors

Methods

Constructors

constructor

new btCapsuleShape(radius, height): btCapsuleShape

Parameters

NameType
radiusnumber
heightnumber

Returns

btCapsuleShape

Overrides

btCollisionShape.constructor

Defined in

packages/ammo/ammo.d.ts:289

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


setMargin

setMargin(margin): void

Parameters

NameType
marginnumber

Returns

void

Overrides

btCollisionShape.setMargin

Defined in

packages/ammo/ammo.d.ts:290


getMargin

getMargin(): number

Returns

number

Overrides

btCollisionShape.getMargin

Defined in

packages/ammo/ammo.d.ts:291


getUpAxis

getUpAxis(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:292


getRadius

getRadius(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:293


getHalfHeight

getHalfHeight(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:294