Aha, we're getting there- Thanks Sswift. Now, how could I do that in 3D?
I'm clueless at this stuff. It's B3D's fault! :P
I know where the object is going, in the X Y and Z direction. i need to know the angle from 0,0,0.
Imagine;
Your car is on a ramp, you know where the ramp is pointing (The NX,NY and NZ in B3D). You need to know the angle however in order to align the car to the ramp.
(PS, no, I am using Max and not b3D here :) )
[edit] I'm right in thinking it'd be just two more pieces of code almost the same as above?
I'm clueless at this stuff. It's B3D's fault! :P
I know where the object is going, in the X Y and Z direction. i need to know the angle from 0,0,0.
Imagine;
Your car is on a ramp, you know where the ramp is pointing (The NX,NY and NZ in B3D). You need to know the angle however in order to align the car to the ramp.
(PS, no, I am using Max and not b3D here :) )
[edit] I'm right in thinking it'd be just two more pieces of code almost the same as above?