BulletConvexHullShape (object)

The BulletConvexHullShape implements an implicit convex hull of an array of vertices. Bullet provides a general and fast collision detector for convex shapes based on GJK and EPA using localGetSupportingVertex.

BulletConvexHullShape BulletConvexHullShape BulletConvexHullShape BulletCollisionShape BulletCollisionShape BulletConvexHullShape->BulletCollisionShape BulletConvexInternalShape BulletConvexInternalShape BulletConvexHullShape->BulletConvexInternalShape BulletConvexShape BulletConvexShape BulletConvexHullShape->BulletConvexShape BulletPolyhedralConvexAabbCachingShape BulletPolyhedralConvexAabbCachingShape BulletConvexHullShape->BulletPolyhedralConvexAabbCachingShape BulletPolyhedralConvexShape BulletPolyhedralConvexShape BulletConvexHullShape->BulletPolyhedralConvexShape

Members

Data pointer  

Methods

  BulletConvexHullShape ( in BulletConvexHullShape other )
  BulletConvexHullShape ( in Lines lines )
  BulletConvexHullShape ( in Points points )
  BulletConvexHullShape ( in PolygonMesh mesh )
  BulletConvexHullShape ( in Vec3 points[] )
  BulletConvexHullShape ()
  __construct ! ( in Vec3 points[] )
  __construct ! ()
  addPoint ! ( in Vec3 point )
  batchedUnitVectorGetSupportingVertexWithoutMargin ? ( in Vec3 vectors[], io Vec3 supportVerticesOut[] )
  calculateLocalInertia ? ( in Scalar mass, io Vec3 inertia )
BulletConvexHullShape clone ? ()
  getAabb ? ( in Xfo t, io Vec3 aabbMin, io Vec3 aabbMax )
  getEdge ? ( in Integer i, io Vec3 pa, io Vec3 pb )
Scalar getMargin ? ()
String getName ? ()
Integer getNumEdges ? ()
Integer getNumPlanes ? ()
Size getNumPoints ? ()
Integer getNumVertices ? ()
  getPlane ? ( io Vec3 planeNormal, io Vec3 planeSupport, in Integer i )
Data getPointer ? ()
Vec3 getScaledPoint ? ( in Integer i )
Vec3[] getUnscaledPoints ? ()
  getVertex ? ( in Integer i, io Vec3 vtx )
Boolean isInside ? ( in Vec3 pt, in Scalar tolerance )
Vec3 localGetSupportingVertex ? ( in Vec3 vec )
Vec3 localGetSupportingVertexWithoutMargin ? ( in Vec3 vec )
  setLocalScaling ! ( in Vec3 scaling )
  setMargin ! ( in Scalar margin )
  ~BulletConvexHullShape ()

Methods in detail

BulletConvexHullShape ( in BulletConvexHullShape other )

copy constructor


BulletConvexHullShape ( in Lines lines )


BulletConvexHullShape ( in Points points )


BulletConvexHullShape ( in PolygonMesh mesh )


BulletConvexHullShape ( in Vec3 points[] )


BulletConvexHullShape ()

this constructor optionally takes in a pointer to points. Each point is assumed to be 3 consecutive Scalar (x,y,z), the striding defines the number of bytes between each point, in memory. It is easier to not pass any points in the constructor, and just add one point at a time, using addPoint. BulletConvexHullShape make an internal copy of the points.


BulletConvexHullShape.__construct! ( in Vec3 points[] )


BulletConvexHullShape.__construct! ()


BulletConvexHullShape.addPoint! ( in Vec3 point )


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


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


BulletConvexHullShape BulletConvexHullShape.clone? ()

clone method


BulletConvexHullShape.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.


BulletConvexHullShape.getEdge? ( in Integer i, io Vec3 pa, io Vec3 pb )


Scalar BulletConvexHullShape.getMargin? ()


String BulletConvexHullShape.getName? ()


Integer BulletConvexHullShape.getNumEdges? ()


Integer BulletConvexHullShape.getNumPlanes? ()


Size BulletConvexHullShape.getNumPoints? ()


Integer BulletConvexHullShape.getNumVertices? ()


BulletConvexHullShape.getPlane? ( io Vec3 planeNormal, io Vec3 planeSupport, in Integer i )


Data BulletConvexHullShape.getPointer? ()


Vec3 BulletConvexHullShape.getScaledPoint? ( in Integer i )


Vec3[] BulletConvexHullShape.getUnscaledPoints? ()


BulletConvexHullShape.getVertex? ( in Integer i, io Vec3 vtx )


Boolean BulletConvexHullShape.isInside? ( in Vec3 pt, in Scalar tolerance )


Vec3 BulletConvexHullShape.localGetSupportingVertex? ( in Vec3 vec )


Vec3 BulletConvexHullShape.localGetSupportingVertexWithoutMargin? ( in Vec3 vec )


BulletConvexHullShape.setLocalScaling! ( in Vec3 scaling )

in case we receive negative scaling


BulletConvexHullShape.setMargin! ( in Scalar margin )


~ BulletConvexHullShape ()