View Full Version : how to orientate a vector towards a point

09-07-2000, 07:04 AM
I have a 3d mesh, centred about a point A.
The object has a point B within the mesh which denotes its front. Therefore the vector AB is its facing direction.

I want to be able to determine the angles of rotation to be applied to the mesh, to orientate it , so it faces a point Z.

I've tried to do the maths a few times, but I'm old ( school was 13 years ago! ), and my maths ain't what it was.