Floods

10-22-2014, 04:48 AM

Hi everyone,

I'm looking to build a vector pointing in the direction my object is facing; this will be used to move the object in that direction over a time period. I have a 4x4 rotation matrix describing the orientation of the object, and I want to get that orientation as a unit vector (vec3 ideally) from the origin of the object so I can add this times by a deltaTime to simulate a motion. I'm having trouble getting this vector, and also wondering in fact if this is the correct way to go about things. Does have anyone have any thoughts on this?

I'm looking to build a vector pointing in the direction my object is facing; this will be used to move the object in that direction over a time period. I have a 4x4 rotation matrix describing the orientation of the object, and I want to get that orientation as a unit vector (vec3 ideally) from the origin of the object so I can add this times by a deltaTime to simulate a motion. I'm having trouble getting this vector, and also wondering in fact if this is the correct way to go about things. Does have anyone have any thoughts on this?