mironix
22-01-2011 22:13:47
i know it's a stupid one but i try to do a global pose transform:
there used to be a frommatrix4 method, but i cannot find it anywhere.
source of idea: viewtopic.php?f=6&t=9277&start=45
i've tried:
but the compilator says:
in
i dont use that one do i ? ;( gnight
Ogre::Bone b;//some loaded bone look at my previous post
Ogre::Matrix4 m = b->_getFullTransform();
Critter::Body mBody;//some capsule
mBody->setGlobalPose(m*Ogre::Quaternion(Ogre::Degree(90),Ogre::Vector3::UNIT_Z));//<- the problem 'cannot convert from matrix4 to matrix44'
there used to be a frommatrix4 method, but i cannot find it anywhere.
source of idea: viewtopic.php?f=6&t=9277&start=45
i've tried:
NxOgre::Radian r;
r = NxOgre::Math::HalfPi;//90 degree
NxOgre::Matrix44 mm(midpoint,b->_getDerivedPosition());
NxOgre::Vec3 zaz = NxOgre::Vec3::UNIT_Z;
mm = mm*NxOgre::Quat(r,zaz);
but the compilator says:
Error 7 error C2039: 'w' : is not a member of 'Ogre::Vector3' d:\nxogre2\nxogre\sdk\nxogrequat.h 68 SummonerFighter
in
template<typename wxyz_quaternion_class>
Quat(const wxyz_quaternion_class& quat)
{
setWXYZ(quat.w, quat.x, quat.y, quat.z);
}
i dont use that one do i ? ;( gnight