Get the Angle of a Normal

BlitzMax Forums/BlitzMax Programming/Get the Angle of a Normal

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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?