bt.CompoundShape¶
-
class
bt.CompoundShape¶ Represents: c++ class Wraps: btCompoundShape Bases: bt.CollisionShapeConstructors:
-
bt.CompoundShape(bool enableDynamicAabbTree, int initialChildCapacity)¶ -
Parameters: - enableDynamicAabbTree (
bool) – - initialChildCapacity (
int) –
- enableDynamicAabbTree (
-
bt.CompoundShape(bool enableDynamicAabbTree) -
Parameters: enableDynamicAabbTree ( bool) –
-
bt.CompoundShape()
Methods:
-
:
addChildShape(bt.Transform localTransform, bt.CollisionShape shape)¶ -
Parameters: - localTransform (
bt.Transform) – - shape (
bt.CollisionShape) –
- localTransform (
-
:
removeChildShape(bt.CollisionShape shape)¶ -
Parameters: shape ( bt.CollisionShape) –
-
:
getNumChildShapes()¶ -
Return type: int
-
:
getChildShape(int index)¶ -
Parameters: index ( int) –Return type: bt.CollisionShape
-
:
getChildTransform(int index)¶ -
Parameters: index ( int) –Return type: bt.Transform
-
:
updateChildTransform(int childIndex, bt.Transform newChildTransform, bool shouldRecalculateLocalAabb)¶ -
Parameters: - childIndex (
int) – - newChildTransform (
bt.Transform) – - shouldRecalculateLocalAabb (
bool) –
- childIndex (
-
:
updateChildTransform(int childIndex, bt.Transform newChildTransform) -
Parameters: - childIndex (
int) – - newChildTransform (
bt.Transform) –
- childIndex (
-