Changed distance method
What I have so far for ogre