Code:
vec_to_angle(my.pan,bounce); // and bounce off any obstacles


should be replaced with
Code:
my.pan += 180;


no additional bouncing wink


Visit my site: www.masterq32.de