1 #ifndef OPENMW_COMPONENTS_RESOURCE_BULLETSHAPE_H
2 #define OPENMW_COMPONENTS_RESOURCE_BULLETSHAPE_H
10 #include <BulletCollision/CollisionShapes/btBvhTriangleMeshShape.h>
12 class btCollisionShape;
17 class BulletShapeInstance;
27 btCollisionShape* mCollisionShape;
67 TriangleMeshShape(btStridingMeshInterface* meshInterface,
bool useQuantizedAabbCompression,
bool buildBvh =
true)
74 delete getTriangleInfoMap();
75 delete m_meshInterface;
META_Object(Resource, BulletShape) btCollisionShape *mCollisionShape
osg::Vec3f mCollisionBoxHalfExtents
Definition: bulletshape.hpp:32
osg::Vec3f mCollisionBoxTranslate
Definition: bulletshape.hpp:33
virtual ~BulletShape()
Definition: bulletshape.cpp:28
btCollisionShape * getCollisionShape()
Definition: bulletshape.cpp:80
void deleteShape(btCollisionShape *shape)
Definition: bulletshape.cpp:33
BulletShape()
Definition: bulletshape.cpp:14
std::map< int, int > mAnimatedShapes
Definition: bulletshape.hpp:39
osg::ref_ptr< BulletShapeInstance > makeInstance() const
Definition: bulletshape.cpp:85
Definition: bulletshape.hpp:55
btCollisionShape * duplicateCollisionShape(const btCollisionShape *shape) const
Definition: bulletshape.cpp:48
BulletShapeInstance(osg::ref_ptr< const BulletShape > source)
Definition: bulletshape.cpp:91
Definition: bulletshape.hpp:18
TriangleMeshShape(btStridingMeshInterface *meshInterface, bool useQuantizedAabbCompression, bool buildBvh=true)
Definition: bulletshape.hpp:67
Definition: bulletshape.hpp:65
osg::ref_ptr< const BulletShape > mSource
Definition: bulletshape.hpp:61
virtual ~TriangleMeshShape()
Definition: bulletshape.hpp:72