This file was created by Alex Silverman. More...
#include <btMultimaterialTriangleMeshShape.h>
Public Member Functions | |
BT_DECLARE_ALIGNED_ALLOCATOR () | |
btMultimaterialTriangleMeshShape (btStridingMeshInterface *meshInterface, bool useQuantizedAabbCompression, bool buildBvh=true) | |
btMultimaterialTriangleMeshShape (btStridingMeshInterface *meshInterface, bool useQuantizedAabbCompression, const btVector3 &bvhAabbMin, const btVector3 &bvhAabbMax, bool buildBvh=true) | |
optionally pass in a larger bvh aabb, used for quantization. This allows for deformations within this aabb | |
virtual | ~btMultimaterialTriangleMeshShape () |
virtual const char * | getName () const |
const btMaterial * | getMaterialProperties (int partID, int triIndex) |
Obtains the material for a specific triangle. | |
Private Attributes | |
btAlignedObjectArray < btMaterial * > | m_materialList |
int ** | m_triangleMaterials |
This file was created by Alex Silverman.
The BvhTriangleMaterialMeshShape extends the btBvhTriangleMeshShape. Its main contribution is the interface into a material array, which allows per-triangle friction and restitution.
Definition at line 25 of file btMultimaterialTriangleMeshShape.h.
btMultimaterialTriangleMeshShape::btMultimaterialTriangleMeshShape | ( | btStridingMeshInterface * | meshInterface, | |
bool | useQuantizedAabbCompression, | |||
bool | buildBvh = true | |||
) | [inline] |
Definition at line 34 of file btMultimaterialTriangleMeshShape.h.
btMultimaterialTriangleMeshShape::btMultimaterialTriangleMeshShape | ( | btStridingMeshInterface * | meshInterface, | |
bool | useQuantizedAabbCompression, | |||
const btVector3 & | bvhAabbMin, | |||
const btVector3 & | bvhAabbMax, | |||
bool | buildBvh = true | |||
) | [inline] |
optionally pass in a larger bvh aabb, used for quantization. This allows for deformations within this aabb
Definition at line 67 of file btMultimaterialTriangleMeshShape.h.
virtual btMultimaterialTriangleMeshShape::~btMultimaterialTriangleMeshShape | ( | ) | [inline, virtual] |
Definition at line 99 of file btMultimaterialTriangleMeshShape.h.
btMultimaterialTriangleMeshShape::BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
Reimplemented from btBvhTriangleMeshShape.
const btMaterial * btMultimaterialTriangleMeshShape::getMaterialProperties | ( | int | partID, | |
int | triIndex | |||
) |
Obtains the material for a specific triangle.
This file was created by Alex Silverman.
Obtains the material for a specific triangle
Definition at line 24 of file btMultimaterialTriangleMeshShape.cpp.
virtual const char* btMultimaterialTriangleMeshShape::getName | ( | ) | const [inline, virtual] |
Reimplemented from btBvhTriangleMeshShape.
Definition at line 112 of file btMultimaterialTriangleMeshShape.h.
Definition at line 27 of file btMultimaterialTriangleMeshShape.h.
int** btMultimaterialTriangleMeshShape::m_triangleMaterials [private] |
Definition at line 28 of file btMultimaterialTriangleMeshShape.h.