Originally Posted By: txesmi
Hi, this code rotates 'you' around 'me'.

Code:
vec_diff ( vtemp, you.x, my.x ); 
vec_rotate ( vtemp, vector ( 0, AngSpeed * time_step, 0 ) );
// or
// vec_rotateaxis ( vtemp, vector ( 0, 1, 0 ), AngSpeed * time_step );
vec_add ( vtemp, my.x );
vec_set ( you.x, vtemp );



PD: rotation around Y axis is tilt wink


Thanks laugh I will test those out soon! Much appreciated!

And about the tilt thing, oops! I made a mistake, was in a hurry wink.

EDIT******

It seems to be working :), but the object also slowly spirals inward towards the axis. I'll keep playing with it.

Last edited by Rich; 07/13/10 12:17.

A8 com / A7 free