Heres an pld one from the board years ago but works well as it is...add to movement after gravity somewhere, should just plug straight in.


Code:
 					temp.tilt = 0;
					temp.roll = 0;
					temp.pan = -my.pan;
					vec_rotate(normal, temp);
					temp.tilt = -asin(normal.x);
					temp.roll = -asin(normal.y);
					my.tilt += 0.1 * ang(temp.tilt - my.tilt); // play with 0.1
					my.roll += 0.1 * ang(temp.roll - my.roll); // play with 0.1



Use the 'manual' Luke, the manual is your friend. 'Self reminder' smile

My WebPage