KevinMulder
18-09-2008 10:45:28
I think they are not the part of 22
NxMat34 nm = mActor->getGlobalPose();
Ogre::Vector3 destPos = NxOgre::toVector3 ( nm.t );
Ogre::Quaternion destOri = NxOgre::toQuaternion( nm.M );
What is therir substitution? I could not find them or I am just missed it somehow ...
mcaden
18-09-2008 11:26:50
I don't know about the functions but for the vector3 it should be easy to do:
Ogre::Vector3 destPos = Ogre::Vector3( nm.t.x, nm.t.y, nm.t.z, );
Caphalor
18-09-2008 12:57:12
As far as I understand the Code, conversions are now done using a template:
NxConvert<ReturnType, InputType>(InputValue)
Ogre::Vector3 NxConvert<Ogre::Vector3, NxVec3>(const NxVec3& v)
NxVec3 NxConvert<NxVec3, Ogre::Vector3>(const Ogre::Vector3& v)
NxQuat NxConvert<NxQuat, Ogre::Quaternion>(const Ogre::Quaternion& q)
...
see NxOgreHelpers.h
KevinMulder
18-09-2008 14:21:34
Mea culpa, mea culpa, mea maxima culpa, shame on me!!!
I have found the NxConvert this morning, before starting this thread, but since I have mixed up the result types (NxMat34 instead of NxQuat, I was not on the top this morning) I tried to search for it, of course it was unsuccessful.
No I cleared it up for myself, that I was soooo stupid.
Sorry for this thread, I was not as pecise as I wanted to be