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:
parent
0418e8e7a6
commit
89f3f860ed
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue