Class: btConvexHullShape
Ammo.btConvexHullShape
Hierarchy
↳
btConvexHullShape
Constructors
Methods
- setLocalScaling
- getLocalScaling
- calculateLocalInertia
- addPoint
- setMargin
- getMargin
- getNumVertices
- initializePolyhedralFeatures
- recalcLocalAabb
- getConvexPolyhedron
Constructors
constructor
• new btConvexHullShape(points?
, numPoints?
): btConvexHullShape
Parameters
Name | Type |
---|---|
points? | readonly number [] |
numPoints? | number |
Returns
Overrides
Defined in
Methods
setLocalScaling
▸ setLocalScaling(scaling
): void
Parameters
Name | Type |
---|---|
scaling | btVector3 |
Returns
void
Inherited from
btCollisionShape.setLocalScaling
Defined in
getLocalScaling
▸ getLocalScaling(): btVector3
Returns
Inherited from
btCollisionShape.getLocalScaling
Defined in
calculateLocalInertia
▸ calculateLocalInertia(mass
, inertia
): void
Parameters
Name | Type |
---|---|
mass | number |
inertia | btVector3 |
Returns
void
Inherited from
btCollisionShape.calculateLocalInertia
Defined in
addPoint
▸ addPoint(point
, recalculateLocalAABB?
): void
Parameters
Name | Type |
---|---|
point | btVector3 |
recalculateLocalAABB? | boolean |
Returns
void
Defined in
setMargin
▸ setMargin(margin
): void
Parameters
Name | Type |
---|---|
margin | number |
Returns
void
Overrides
Defined in
getMargin
▸ getMargin(): number
Returns
number
Overrides
Defined in
getNumVertices
▸ getNumVertices(): number
Returns
number
Defined in
initializePolyhedralFeatures
▸ initializePolyhedralFeatures(shiftVerticesByMargin
): boolean
Parameters
Name | Type |
---|---|
shiftVerticesByMargin | number |
Returns
boolean
Defined in
recalcLocalAabb
▸ recalcLocalAabb(): void
Returns
void
Defined in
getConvexPolyhedron
▸ getConvexPolyhedron(): btConvexPolyhedron