Originally Posted by

**Mirror** ... the movement of an object on a sphere. The data are as this : The sphere has a radius R and it's center is at (0,0,0)....

What i have done till now is this :

i defined an angle called "chi" which is the direction the object is "looking at", the rotation around its axis. i also have a "unit" vector which let's say vec=(0,0,1) which gets added to the P thus producing the new point P1. I have the rotation matrix of a point around an axis and this is fine. The problem is each time the object moves, "vec" must rotate appropriately so that it is perpendicular to the vector P. Any help would be appreciated.

thank you in advance