fatpwnage
28-05-2008 14:31:00
The function to convert an Ogre matrix into a NxOgre matrix are private, declarations below:
NxMat33 toNxMat33(const Ogre::Matrix3&);
NxMat34 toNxMat34(const Ogre::Matrix4&);
I need these two functions because NxOgre::Actor::SetGlobalOrientation takes an NxMat33 as an argument.
Could you make them public functions in the next release?
Here is a patch to do it:
NxMat33 toNxMat33(const Ogre::Matrix3&);
NxMat34 toNxMat34(const Ogre::Matrix4&);
I need these two functions because NxOgre::Actor::SetGlobalOrientation takes an NxMat33 as an argument.
Could you make them public functions in the next release?
Here is a patch to do it:
Index: include/NxOgreHelpers.h
===================================================================
--- include/NxOgreHelpers.h (revision 21)
+++ include/NxOgreHelpers.h (working copy)
@@ -37,8 +37,8 @@
///// Removed from NxOgre (due to ignoring of character system).
///// NxExtendedVec3 NxPublicFunction toNxExtendedVec3(const Ogre::Vector3& v);
- NxMat33 toNxMat33(const Ogre::Matrix3&);
- NxMat34 toNxMat34(const Ogre::Matrix4&);
+ NxMat33 NxPublicFunction toNxMat33(const Ogre::Matrix3&);
+ NxMat34 NxPublicFunction toNxMat34(const Ogre::Matrix4&);
NxString NxPublicFunction NxCreateID(unsigned int groupCount, NxString typeHash);
/////////////////////////////////////////////////////////////