sync on sync rate 30 `Place somewhere at the start Global DH# : DH# = 15 make object cube 1, 10 do if upkey() move camera 1 endif if downkey() move camera -1 endif
function rotateObjectToPoint(obj, turnSpeed, x, y, z) //store old rotate oldXa as float oldYa as float oldZa as float diff as float oldXa = wrapvalue(object angle x(obj))