crankyslap
30-09-2012 10:58:23
I was looking how to find a simple distance between two Vector3's and I found this on the Ogre forums:
But I can't seem to find Ogre::Real in the Mogre wrapper... does it exist? And if not, is there an alternative built in?
Ogre::Vector3 a = Ogre::Vector3(1, 2, 3);
Ogre::Vector3 b = Ogre::Vector3(4, 5, 6);
Ogre::Real r = a.distance(b);
But I can't seem to find Ogre::Real in the Mogre wrapper... does it exist? And if not, is there an alternative built in?