51 btVector3 extent = localHalfExtents.
dot3(abs_b[0], abs_b[1], abs_b[2]);
52 aabbMin = center - extent;
53 aabbMax = center + extent;
58 for (
int i = 0; i < 3; i++)
90 for (
int i = 0; i < 3; i++)
134 : m_callback(callback),
140 virtual void internalProcessTriangleIndex(
btVector3* triangle,
int partId,
int triangleIndex)
150 FilteredCallback filterCallback(callback, aabbMin, aabbMax);
178 return supportVertex;
bool TestTriangleAgainstAabb2(const btVector3 *vertices, const btVector3 &aabbMin, const btVector3 &aabbMax)
conservative test for overlap between triangle and aabb
@ TRIANGLE_MESH_SHAPE_PROXYTYPE
btScalar dot(const btQuaternion &q1, const btQuaternion &q2)
Calculate the dot product between two quaternions.
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
btVector3 m_supportVertexLocal
btVector3 GetSupportVertexWorldSpace()
btVector3 m_supportVecLocal
btVector3 GetSupportVertexLocal()
SupportVertexCallback(const btVector3 &supportVecWorld, const btTransform &trans)
virtual void processTriangle(btVector3 *triangle, int partId, int triangleIndex)
The btConcaveShape class provides an interface for non-moving (static) concave shapes.
virtual btScalar getMargin() const
btScalar m_collisionMargin
The btMatrix3x3 class implements a 3x3 rotation matrix, to perform linear algebra in combination with...
btMatrix3x3 absolute() const
Return the matrix with all values non negative.
The btStridingMeshInterface is the interface class for high performance generic access to triangle me...
virtual void getPremadeAabb(btVector3 *aabbMin, btVector3 *aabbMax) const
virtual bool hasPremadeAabb() const
const btVector3 & getScaling() const
void setScaling(const btVector3 &scaling)
virtual void InternalProcessAllTriangles(btInternalTriangleIndexCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
The btTriangleCallback provides a callback for each overlapping triangle when calling processAllTrian...
virtual void processTriangle(btVector3 *triangle, int partId, int triangleIndex)=0
virtual ~btTriangleMeshShape()
virtual void getAabb(const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.
btTriangleMeshShape(btStridingMeshInterface *meshInterface)
btTriangleMeshShape constructor has been disabled/protected, so that users will not mistakenly use th...
virtual void calculateLocalInertia(btScalar mass, btVector3 &inertia) const
virtual void processAllTriangles(btTriangleCallback *callback, const btVector3 &aabbMin, const btVector3 &aabbMax) const
virtual btVector3 localGetSupportingVertex(const btVector3 &vec) const
virtual void setLocalScaling(const btVector3 &scaling)
btStridingMeshInterface * m_meshInterface
virtual const btVector3 & getLocalScaling() const
btVector3 can be used to represent 3D points and vectors.
btScalar dot(const btVector3 &v) const
Return the dot product.
btVector3 dot3(const btVector3 &v0, const btVector3 &v1, const btVector3 &v2) const
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)