[SOLVED] Set same orientation for Actor and Entity

Brakok

04-05-2010 00:31:29

Hi, i searched through several topics without finding what i am looking for, but my question is probably cover somewhere.

When I create a Body with Critter (using Detritus, but i got the same problem with BloodyMess) , my Ogre Mesh doesn't have the same orientation than my Actor and I don't know how to set their orientation to be together.

I tried to globaly set the orientation of the Body with setGlobalOrientation(NxOgre::Matrix33(NxOgre::Quat(0,45,0,45))), but it turns my model and my actor. I just want the Actor to rotate.

I tried with getNxActor(), but I got strange results.

If this question is covered somewhere, just tell me. Thx for any advice, hint or solution.

betajaen

04-05-2010 09:18:04

You have to reorientate your mesh using MeshMagick.

Brakok

04-05-2010 14:26:08

I tried, but i use the column mesh from Ogre and it raises error when i tried to transform it with it. Something like Mesh serializer v0.41 not implement... I already searched for it and it seems to be a conflict between an older version of Ogre and mine (1.7) . MeshMagik doesn't seem to be update to Ogre 1.7 (I'm probably wrong, but I can't find a version sooner than june-july 2009 and Ogre 1.7 stable release has been commited 1-2 months ago).

If it's the shorter way (and it whats I think), can someone just tell me if they succeed to use it with Ogre 1.7 Mesh? Thx

Edit: Nvm, I took it from the SVN branch and it seems working. Will eventually use it to rotate my mesh.
Edit 2: No, it doesn't work... meshmagick throws errors... but nothing about NxOgre, then CLOSED.