Differential D1739 Diff 5899 extern/bullet2/src/BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.h
Changeset View
Changeset View
Standalone View
Standalone View
extern/bullet2/src/BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.h
| Show All 19 Lines | |||||
| #include "btBvhTriangleMeshShape.h" | #include "btBvhTriangleMeshShape.h" | ||||
| #include "btMaterial.h" | #include "btMaterial.h" | ||||
| ///The BvhTriangleMaterialMeshShape extends the btBvhTriangleMeshShape. Its main contribution is the interface into a material array, which allows per-triangle friction and restitution. | ///The BvhTriangleMaterialMeshShape extends the btBvhTriangleMeshShape. Its main contribution is the interface into a material array, which allows per-triangle friction and restitution. | ||||
| ATTRIBUTE_ALIGNED16(class) btMultimaterialTriangleMeshShape : public btBvhTriangleMeshShape | ATTRIBUTE_ALIGNED16(class) btMultimaterialTriangleMeshShape : public btBvhTriangleMeshShape | ||||
| { | { | ||||
| btAlignedObjectArray <btMaterial*> m_materialList; | btAlignedObjectArray <btMaterial*> m_materialList; | ||||
| int ** m_triangleMaterials; | |||||
| public: | public: | ||||
| BT_DECLARE_ALIGNED_ALLOCATOR(); | BT_DECLARE_ALIGNED_ALLOCATOR(); | ||||
| btMultimaterialTriangleMeshShape(btStridingMeshInterface* meshInterface, bool useQuantizedAabbCompression, bool buildBvh = true): | btMultimaterialTriangleMeshShape(btStridingMeshInterface* meshInterface, bool useQuantizedAabbCompression, bool buildBvh = true): | ||||
| btBvhTriangleMeshShape(meshInterface, useQuantizedAabbCompression, buildBvh) | btBvhTriangleMeshShape(meshInterface, useQuantizedAabbCompression, buildBvh) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines | |||||