BulletCompoundShape (object)

The BulletCompoundShape allows to store multiple other BulletCollisionShapes This allows for moving concave collision objects. This is more general then the static concave BulletBvhTriangleMeshShape. It has an (optional) dynamic aabb tree to accelerate early rejection tests. @todo: This aabb tree can also be use to speed up ray tests on BulletCompoundShape, see http://code.google.com/p/bullet/issues/detail?id=25 Currently, removal of child shapes is only supported when disabling the aabb tree (pass ‘false’ in the constructor of BulletCompoundShape)

BulletCompoundShape BulletCompoundShape BulletCompoundShape BulletCollisionShape BulletCollisionShape BulletCompoundShape->BulletCollisionShape

Members

Data pointer  
BulletCollisionShape[] children  

Methods

  BulletCompoundShape ( in Boolean enableDynamicAabbTree )
  BulletCompoundShape ( in BulletCompoundShape other )
  BulletCompoundShape ()
  __addChildShape ! ( in Xfo localTransform, in BulletCollisionShape shape )
  __construct ! ( in Boolean enableDynamicAabbTree )
  __destroy ! ()
  __removeChildShape ! ( in BulletCollisionShape shape )
  __removeChildShapeByIndex ! ( in Integer childShapeindex )
  addChildShape ! ( in Xfo localTransform, in BulletCollisionShape shape )
  calculateLocalInertia ? ( in Scalar mass, io Vec3 inertia )
BulletCompoundShape clone ? ()
  getAabb ? ( in Xfo t, io Vec3 aabbMin, io Vec3 aabbMax )
BulletCollisionShape[] getChildList ? ()
BulletCollisionShape getChildShape ? ( in Integer index )
Xfo getChildTransform ? ( in Integer index )
Vec3 getLocalScaling ? ()
Scalar getMargin ? ()
Integer getNumChildShapes ? ()
Data getPointer ? ()
  removeChildShape ! ( in BulletCollisionShape shape )
  removeChildShapeByIndex ! ( in Integer childShapeindex )
  setLocalScaling ! ( in Vec3 scaling )
  setMargin ! ( in Scalar margin )
  updateChildTransform ! ( in Integer childIndex, in Xfo newChildTransform )
  updateChildTransform ! ( in Integer childIndex, in Xfo newChildTransform, in Boolean shouldRecalculateLocalAabb )
  ~BulletCompoundShape ()

Methods in detail

BulletCompoundShape ( in Boolean enableDynamicAabbTree )


BulletCompoundShape ( in BulletCompoundShape other )

copy constructor


BulletCompoundShape ()


BulletCompoundShape.__addChildShape! ( in Xfo localTransform, in BulletCollisionShape shape )


BulletCompoundShape.__construct! ( in Boolean enableDynamicAabbTree )


BulletCompoundShape.__destroy! ()


BulletCompoundShape.__removeChildShape! ( in BulletCollisionShape shape )


BulletCompoundShape.__removeChildShapeByIndex! ( in Integer childShapeindex )


BulletCompoundShape.addChildShape! ( in Xfo localTransform, in BulletCollisionShape shape )


BulletCompoundShape.calculateLocalInertia? ( in Scalar mass, io Vec3 inertia )


BulletCompoundShape BulletCompoundShape.clone? ()

clone method


BulletCompoundShape.getAabb? ( in Xfo t, io Vec3 aabbMin, io Vec3 aabbMax )

getAabb’s default implementation is brute force, expected derived classes to implement a fast dedicated version


BulletCollisionShape[] BulletCompoundShape.getChildList? ()


BulletCollisionShape BulletCompoundShape.getChildShape? ( in Integer index )


Xfo BulletCompoundShape.getChildTransform? ( in Integer index )


Vec3 BulletCompoundShape.getLocalScaling? ()


Scalar BulletCompoundShape.getMargin? ()


Integer BulletCompoundShape.getNumChildShapes? ()


Data BulletCompoundShape.getPointer? ()


BulletCompoundShape.removeChildShape! ( in BulletCollisionShape shape )

Remove all children shapes that contain the specified shape


BulletCompoundShape.removeChildShapeByIndex! ( in Integer childShapeindex )


BulletCompoundShape.setLocalScaling! ( in Vec3 scaling )

Re-calculate the local Aabb. Is called at the end of removeChildShapes. Use this yourself if you modify the children or their transforms.


BulletCompoundShape.setMargin! ( in Scalar margin )


BulletCompoundShape.updateChildTransform! ( in Integer childIndex, in Xfo newChildTransform )

set a new transform for a child, and update internal data structures (local aabb and dynamic tree)


BulletCompoundShape.updateChildTransform! ( in Integer childIndex, in Xfo newChildTransform, in Boolean shouldRecalculateLocalAabb )


~ BulletCompoundShape ()