Class: btCompoundShape
Ammo.btCompoundShape
Hierarchy
↳
btCompoundShape
Constructors
Methods
- setLocalScaling
- getLocalScaling
- calculateLocalInertia
- addChildShape
- removeChildShape
- removeChildShapeByIndex
- getNumChildShapes
- getChildShape
- updateChildTransform
- setMargin
- getMargin
Constructors
constructor
• new btCompoundShape(enableDynamicAabbTree?
): btCompoundShape
Parameters
Name | Type |
---|---|
enableDynamicAabbTree? | boolean |
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
addChildShape
▸ addChildShape(localTransform
, shape
): void
Parameters
Name | Type |
---|---|
localTransform | btTransform |
shape | btCollisionShape |
Returns
void
Defined in
removeChildShape
▸ removeChildShape(shape
): void
Parameters
Name | Type |
---|---|
shape | btCollisionShape |
Returns
void
Defined in
removeChildShapeByIndex
▸ removeChildShapeByIndex(childShapeindex
): void
Parameters
Name | Type |
---|---|
childShapeindex | number |
Returns
void
Defined in
getNumChildShapes
▸ getNumChildShapes(): number
Returns
number
Defined in
getChildShape
▸ getChildShape(index
): btCollisionShape
Parameters
Name | Type |
---|---|
index | number |
Returns
Defined in
updateChildTransform
▸ updateChildTransform(childIndex
, newChildTransform
, shouldRecalculateLocalAabb?
): void
Parameters
Name | Type |
---|---|
childIndex | number |
newChildTransform | btTransform |
shouldRecalculateLocalAabb? | boolean |
Returns
void
Defined in
setMargin
▸ setMargin(margin
): void
Parameters
Name | Type |
---|---|
margin | number |
Returns
void
Overrides
Defined in
getMargin
▸ getMargin(): number
Returns
number