BulletCapsuleShape (object)

The BulletCapsuleShape represents a capsule around the Y axis, there is also the BulletCapsuleShapeX aligned around the X axis and BulletCapsuleShapeZ around the Z axis. The total height is height+2*radius, so the height is just the height between the center of each ‘sphere’ of the capsule caps. The BulletCapsuleShape is a convex hull of two spheres. The BulletMultiSphereShape is a more general collision shape that takes the convex hull of multiple sphere, so it can also represent a capsule when just using two spheres.

BulletCapsuleShape BulletCapsuleShape BulletCapsuleShape BulletCollisionShape BulletCollisionShape BulletCapsuleShape->BulletCollisionShape BulletConvexInternalShape BulletConvexInternalShape BulletCapsuleShape->BulletConvexInternalShape BulletConvexShape BulletConvexShape BulletCapsuleShape->BulletConvexShape

Members

Data pointer  

Methods

  BulletCapsuleShape ( in BulletCapsuleShape other )
  BulletCapsuleShape ( in Scalar radius, in Scalar height )
  BulletCapsuleShape ()
  __construct ! ( in Scalar radius, in Scalar height )
  __destroy ! ()
  batchedUnitVectorGetSupportingVertexWithoutMargin ? ( in Vec3 vectors[], io Vec3 supportVerticesOut[] )
  calculateLocalInertia ? ( in Scalar mass, io Vec3 inertia )
BulletCapsuleShape clone ? ()
  getAabb ? ( in Xfo t, io Vec3 aabbMin, io Vec3 aabbMax )
Scalar getHalfHeight ? ()
Scalar getMargin ? ()
String getName ? ()
Data getPointer ? ()
Scalar getRadius ? ()
Integer getUpAxis ? ()
Vec3 localGetSupportingVertexWithoutMargin ? ( in Vec3 vec )
  setLocalScaling ! ( in Vec3 scaling )
  setMargin ! ( in Scalar collisionMargin )
  setMargin ! ( in Scalar margin )
  ~BulletCapsuleShape ()

Methods in detail

BulletCapsuleShape ( in BulletCapsuleShape other )

copy constructor


BulletCapsuleShape ( in Scalar radius, in Scalar height )


BulletCapsuleShape ()

default constructor


BulletCapsuleShape.__construct! ( in Scalar radius, in Scalar height )


BulletCapsuleShape.__destroy! ()


BulletCapsuleShape.batchedUnitVectorGetSupportingVertexWithoutMargin? ( in Vec3 vectors[], io Vec3 supportVerticesOut[] )


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

CollisionShape Interface


BulletCapsuleShape BulletCapsuleShape.clone? ()

clone method


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

getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.


Scalar BulletCapsuleShape.getHalfHeight? ()


Scalar BulletCapsuleShape.getMargin? ()


String BulletCapsuleShape.getName? ()


Data BulletCapsuleShape.getPointer? ()


Scalar BulletCapsuleShape.getRadius? ()


Integer BulletCapsuleShape.getUpAxis? ()


Vec3 BulletCapsuleShape.localGetSupportingVertexWithoutMargin? ( in Vec3 vec )

BulletConvexShape Interface


BulletCapsuleShape.setLocalScaling! ( in Vec3 scaling )


BulletCapsuleShape.setMargin! ( in Scalar collisionMargin )


BulletCapsuleShape.setMargin! ( in Scalar margin )


~ BulletCapsuleShape ()