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.
Methods¶
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[] )
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 )