Class: btHeightfieldTerrainShape
Ammo.btHeightfieldTerrainShape
Hierarchy
↳
btHeightfieldTerrainShape
Constructors
Methods
Constructors
constructor
• new btHeightfieldTerrainShape(heightStickWidth
, heightStickLength
, heightfieldData
, heightScale
, minHeight
, maxHeight
, upAxis
, hdt
, flipQuadEdges
): btHeightfieldTerrainShape
Parameters
Name | Type |
---|---|
heightStickWidth | number |
heightStickLength | number |
heightfieldData | unknown |
heightScale | number |
minHeight | number |
maxHeight | number |
upAxis | number |
hdt | PHY_ScalarType |
flipQuadEdges | boolean |
Returns
Overrides
Defined in
Methods
setLocalScaling
▸ setLocalScaling(scaling
): void
Parameters
Name | Type |
---|---|
scaling | btVector3 |
Returns
void
Inherited from
btConcaveShape.setLocalScaling
Defined in
getLocalScaling
▸ getLocalScaling(): btVector3
Returns
Inherited from
btConcaveShape.getLocalScaling
Defined in
calculateLocalInertia
▸ calculateLocalInertia(mass
, inertia
): void
Parameters
Name | Type |
---|---|
mass | number |
inertia | btVector3 |
Returns
void
Inherited from
btConcaveShape.calculateLocalInertia
Defined in
setMargin
▸ setMargin(margin
): void
Parameters
Name | Type |
---|---|
margin | number |
Returns
void
Overrides
Defined in
getMargin
▸ getMargin(): number
Returns
number