Posted By: Ralaman
Rotation around Arbitrary Axis - 04/12/11 01:13
Anyone know how to rotate a entity around arbitrary axis.
Like the moon arround the earth?
thx
Like the moon arround the earth?
thx
var offset = -100; // decrease to increase distance camera.pan += 10 * time_step; camera.x = my.x + fcos((camera.pan),fcos(camera.tilt,offset)); camera.y = my.y + fsin((camera.pan),fcos(camera.tilt,offset)); camera.z = my.z + 40 + fsin(camera.tilt,offset);