OpenMW
|
#include <BtOgreGP.h>
Public Member Functions | |
AnimatedMeshToShapeConverter (Ogre::Entity *entity, const Ogre::Matrix4 &transform=Ogre::Matrix4::IDENTITY) | |
AnimatedMeshToShapeConverter () | |
~AnimatedMeshToShapeConverter () | |
void | addEntity (Ogre::Entity *entity, const Ogre::Matrix4 &transform=Ogre::Matrix4::IDENTITY) |
void | addMesh (const Ogre::MeshPtr &mesh, const Ogre::Matrix4 &transform) |
btBoxShape * | createAlignedBox (unsigned char bone, const Ogre::Vector3 &bonePosition, const Ogre::Quaternion &boneOrientation) |
btBoxShape * | createOrientedBox (unsigned char bone, const Ogre::Vector3 &bonePosition, const Ogre::Quaternion &boneOrientation) |
Protected Member Functions | |
bool | getBoneVertices (unsigned char bone, unsigned int &vertex_count, Ogre::Vector3 *&vertices, const Ogre::Vector3 &bonePosition) |
bool | getOrientedBox (unsigned char bone, const Ogre::Vector3 &bonePosition, const Ogre::Quaternion &boneOrientation, Ogre::Vector3 &extents, Ogre::Vector3 *axis, Ogre::Vector3 ¢er) |
Protected Attributes | |
Ogre::Entity * | mEntity |
Ogre::SceneNode * | mNode |
Ogre::Vector3 * | mTransformedVerticesTemp |
size_t | mTransformedVerticesTempSize |
BtOgre::AnimatedMeshToShapeConverter::AnimatedMeshToShapeConverter | ( | Ogre::Entity * | entity, |
const Ogre::Matrix4 & | transform = Ogre::Matrix4::IDENTITY |
||
) |
void BtOgre::AnimatedMeshToShapeConverter::addEntity | ( | Ogre::Entity * | entity, |
const Ogre::Matrix4 & | transform = Ogre::Matrix4::IDENTITY |
||
) |
void BtOgre::AnimatedMeshToShapeConverter::addMesh | ( | const Ogre::MeshPtr & | mesh, |
const Ogre::Matrix4 & | transform | ||
) |
btBoxShape * BtOgre::AnimatedMeshToShapeConverter::createAlignedBox | ( | unsigned char | bone, |
const Ogre::Vector3 & | bonePosition, | ||
const Ogre::Quaternion & | boneOrientation | ||
) |
btBoxShape * BtOgre::AnimatedMeshToShapeConverter::createOrientedBox | ( | unsigned char | bone, |
const Ogre::Vector3 & | bonePosition, | ||
const Ogre::Quaternion & | boneOrientation | ||
) |
bool BtOgre::AnimatedMeshToShapeConverter::getBoneVertices | ( | unsigned char | bone, |
unsigned int & | vertex_count, | ||
Ogre::Vector3 *& | vertices, | ||
const Ogre::Vector3 & | bonePosition | ||
) | [protected] |
bool BtOgre::AnimatedMeshToShapeConverter::getOrientedBox | ( | unsigned char | bone, |
const Ogre::Vector3 & | bonePosition, | ||
const Ogre::Quaternion & | boneOrientation, | ||
Ogre::Vector3 & | extents, | ||
Ogre::Vector3 * | axis, | ||
Ogre::Vector3 & | center | ||
) | [protected] |
Ogre::Entity* BtOgre::AnimatedMeshToShapeConverter::mEntity [protected] |
Ogre::SceneNode* BtOgre::AnimatedMeshToShapeConverter::mNode [protected] |
Ogre::Vector3* BtOgre::AnimatedMeshToShapeConverter::mTransformedVerticesTemp [protected] |
size_t BtOgre::AnimatedMeshToShapeConverter::mTransformedVerticesTempSize [protected] |