View Full Version : align obj pivot to world

03 March 2006, 05:25 PM
Hi All,

I have been trying to write a function which will orientate an objects pivot to the world but without rotating or moving the mesh. I dont want the pivot to jump to the origin, I just want it to rotate the pivot`s xyz axis so they line up with the world.

My feable function only works when an object is rotated in a couple of AXIS but it gives strange results when an object is rotated in all 3 axis. i know this is because I dont understand offset matrix and quats, can somebody show me an example of how to go about this.

Thanks for reading


03 March 2006, 10:20 PM
doh !!

CGTalk Moderation
03 March 2006, 10:20 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.