1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-01 05:39:41 +00:00

Allow to get a rotation vector from ESM::Position

This commit is contained in:
Andrei Kortunov 2021-01-13 13:57:05 +04:00
parent 0418e8e7a6
commit 89f3f860ed

View file

@ -54,6 +54,11 @@ struct Position
{
return osg::Vec3f(pos[0], pos[1], pos[2]);
}
osg::Vec3f asRotationVec3() const
{
return osg::Vec3f(rot[0], rot[1], rot[2]);
}
};
#pragma pack(pop)