Skip to content

Class: btHeightfieldTerrainShape

Ammo.btHeightfieldTerrainShape

Hierarchy

Constructors

Methods

Constructors

constructor

new btHeightfieldTerrainShape(heightStickWidth, heightStickLength, heightfieldData, heightScale, minHeight, maxHeight, upAxis, hdt, flipQuadEdges): btHeightfieldTerrainShape

Parameters

NameType
heightStickWidthnumber
heightStickLengthnumber
heightfieldDataunknown
heightScalenumber
minHeightnumber
maxHeightnumber
upAxisnumber
hdtPHY_ScalarType
flipQuadEdgesboolean

Returns

btHeightfieldTerrainShape

Overrides

btConcaveShape.constructor

Defined in

packages/ammo/ammo.d.ts:424

Methods

setLocalScaling

setLocalScaling(scaling): void

Parameters

NameType
scalingbtVector3

Returns

void

Inherited from

btConcaveShape.setLocalScaling

Defined in

packages/ammo/ammo.d.ts:273


getLocalScaling

getLocalScaling(): btVector3

Returns

btVector3

Inherited from

btConcaveShape.getLocalScaling

Defined in

packages/ammo/ammo.d.ts:274


calculateLocalInertia

calculateLocalInertia(mass, inertia): void

Parameters

NameType
massnumber
inertiabtVector3

Returns

void

Inherited from

btConcaveShape.calculateLocalInertia

Defined in

packages/ammo/ammo.d.ts:275


setMargin

setMargin(margin): void

Parameters

NameType
marginnumber

Returns

void

Overrides

btConcaveShape.setMargin

Defined in

packages/ammo/ammo.d.ts:425


getMargin

getMargin(): number

Returns

number

Overrides

btConcaveShape.getMargin

Defined in

packages/ammo/ammo.d.ts:426

Released under the MIT License