Logo Search packages:      
Sourcecode: blender version File versions  Download package

btTriangleShapeEx Class Reference

#include <btTriangleShapeEx.h>

Inheritance diagram for btTriangleShapeEx:

btPolyhedralConvexShape btConvexInternalShape

List of all members.


Detailed Description

Helper class for colliding Bullet Triangle Shapes.

This class implements a better getAabb method than the previous btTriangleShape class

Definition at line 135 of file btTriangleShapeEx.h.


Public Member Functions

void applyTransform (const btTransform &t)
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
 btTriangleShapeEx (const btTriangleShapeEx &other)
 btTriangleShapeEx (const btVector3 &p0, const btVector3 &p1, const btVector3 &p2)
SIMD_FORCE_INLINE void buildTriPlane (btVector4 &plane) const
void calcNormal (btVector3 &normal) const
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
virtual void getAabb (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
 getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version
virtual void getAabbSlow (const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
void getCachedLocalAabb (btVector3 &aabbMin, btVector3 &aabbMax) const
virtual void getEdge (int i, btVector3 &pa, btVector3 &pb) const
const btVector3 & getImplicitShapeDimensions () const
virtual const btVector3 & getLocalScaling () const
const btVector3 & getLocalScalingNV () const
virtual btScalar getMargin () const
btScalar getMarginNV () const
virtual const char * getName () const
void getNonvirtualAabb (const btTransform &trans, btVector3 &aabbMin, btVector3 &aabbMax, btScalar margin) const
virtual int getNumEdges () const
virtual int getNumPlanes () const
virtual int getNumPreferredPenetrationDirections () const
virtual int getNumVertices () const
virtual void getPlane (btVector3 &planeNormal, btVector3 &planeSupport, int i) const
virtual void getPlaneEquation (int i, btVector3 &planeNormal, btVector3 &planeSupport) const
virtual void getPreferredPenetrationDirection (int index, btVector3 &penetrationVector) const
virtual void getVertex (int index, btVector3 &vert) const
const btVector3 & getVertexPtr (int index) const
virtual bool isInside (const btVector3 &pt, btScalar tolerance) const
virtual btVector3 localGetSupportingVertex (const btVector3 &vec) const
btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &dir) const
bool overlap_test_conservative (const btTriangleShapeEx &other)
 class btTriangleShapeEx: public btTriangleShape
void recalcLocalAabb ()
void setCachedLocalAabb (const btVector3 &aabbMin, const btVector3 &aabbMax)
virtual void setLocalScaling (const btVector3 &scaling)
virtual void setMargin (btScalar margin)

Public Attributes

class Hull * m_optionalHull
 optional Hull is for optional Separating Axis Test Hull collision detection, see Hull.cpp
btVector3 m_vertices1 [3]

Protected Attributes

btScalar m_collisionMargin
btVector3 m_implicitShapeDimensions
bool m_isLocalAabbValid
btVector3 m_localAabbMax
btVector3 m_localAabbMin
btVector3 m_localScaling
btScalar m_padding

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index