bt.CompoundShape

class bt.CompoundShape
Represents:c++ class
Wraps:btCompoundShape
Bases:bt.CollisionShape

Constructors:

bt.CompoundShape(bool enableDynamicAabbTree, int initialChildCapacity)

Parameters:
  • enableDynamicAabbTree (bool) –
  • initialChildCapacity (int) –
bt.CompoundShape(bool enableDynamicAabbTree)

Parameters:enableDynamicAabbTree (bool) –
bt.CompoundShape()

Methods:

:addChildShape(bt.Transform localTransform, bt.CollisionShape shape)

Parameters:
: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) –
:updateChildTransform(int childIndex, bt.Transform newChildTransform)

Parameters: