02.04.2010, 02:37
Hi guys,
I have two 3D points (X, Y, Z) and wondered how I would get X, Y, Z rotation angles between these points.
I've searched these forums, the interwebs, and asked for help, yet nobody seems to know how to do something like this.
To be more specific, I'm trying to create an object at point 1 which will face point 2, so I need the rotation values which will make it face point 2.
I'm assuming it'd use some complex (or not) math functions, but all of my attempts with just about every function failed. :<
Hopefully there are some math geeks out there who can help.
I have two 3D points (X, Y, Z) and wondered how I would get X, Y, Z rotation angles between these points.
I've searched these forums, the interwebs, and asked for help, yet nobody seems to know how to do something like this.
To be more specific, I'm trying to create an object at point 1 which will face point 2, so I need the rotation values which will make it face point 2.
I'm assuming it'd use some complex (or not) math functions, but all of my attempts with just about every function failed. :<
Hopefully there are some math geeks out there who can help.