Skip to content

Class: btConvexHullShape

Ammo.btConvexHullShape

Hierarchy

Constructors

Methods

Constructors

constructor

new btConvexHullShape(points?, numPoints?): btConvexHullShape

Parameters

NameType
points?readonly number[]
numPoints?number

Returns

btConvexHullShape

Overrides

btCollisionShape.constructor

Defined in

packages/ammo/ammo.d.ts:363

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


addPoint

addPoint(point, recalculateLocalAABB?): void

Parameters

NameType
pointbtVector3
recalculateLocalAABB?boolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:364


setMargin

setMargin(margin): void

Parameters

NameType
marginnumber

Returns

void

Overrides

btCollisionShape.setMargin

Defined in

packages/ammo/ammo.d.ts:365


getMargin

getMargin(): number

Returns

number

Overrides

btCollisionShape.getMargin

Defined in

packages/ammo/ammo.d.ts:366


getNumVertices

getNumVertices(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:367


initializePolyhedralFeatures

initializePolyhedralFeatures(shiftVerticesByMargin): boolean

Parameters

NameType
shiftVerticesByMarginnumber

Returns

boolean

Defined in

packages/ammo/ammo.d.ts:368


recalcLocalAabb

recalcLocalAabb(): void

Returns

void

Defined in

packages/ammo/ammo.d.ts:369


getConvexPolyhedron

getConvexPolyhedron(): btConvexPolyhedron

Returns

btConvexPolyhedron

Defined in

packages/ammo/ammo.d.ts:370