1 #ifndef OPENMW_MWPHYSICS_CONVERT_H
2 #define OPENMW_MWPHYSICS_CONVERT_H
4 #include <LinearMath/btVector3.h>
5 #include <LinearMath/btQuaternion.h>
13 inline btVector3
toBullet(
const osg::Vec3f& vec)
15 return btVector3(vec.x(), vec.y(), vec.z());
18 inline btQuaternion
toBullet(
const osg::Quat& quat)
20 return btQuaternion(quat.x(), quat.y(), quat.z(), quat.w());
23 inline osg::Vec3f
toOsg(
const btVector3& vec)
25 return osg::Vec3f(vec.x(), vec.y(), vec.z());
28 inline osg::Quat
toOsg(
const btQuaternion& quat)
30 return osg::Quat(quat.x(), quat.y(), quat.z(), quat.w());
btVector3 toBullet(const osg::Vec3f &vec)
Definition: convert.hpp:13
osg::Vec3f toOsg(const btVector3 &vec)
Definition: convert.hpp:23