Calculate 3d Rotation Maintaining Orientation
up vote
2
down vote
favorite
My Current Setup: Let's assume we have these 3 axes in 3d space. Let's also assume that x = blue; y = red; green = z; To calculate a rotation on the x axis, i.e., from point A->E, we can calculate that by doing p1 = A p2 = Origin (Gray) p3 = E This would also work for A->C, however, to get the circular behavior we want, we need to do All of this works great :) Now for, The Problem: So far, I have my X-Axis Rotation down perfectly. I am looking to rotate the Y and Z axis in such a manner that I NEVER rotate the INITIAL Z axis. Let's say I have 2 objects, object O and object P as noted on the picture. The goal is that as O translates and rotates, that P will only rotate to face O. However, we do NOT want the orientation of P to follow the orientation of O. T...