Hello,
when i use ActionScript in Flash i use this code to make an object move forward depending on it’s rotation :
public static function moveForward (o1:Object, s:Number)
{
o1.x = o1.x + Math.cos(o1.rotation / 180 * Math.PI) * s;
o1.y = o1.y + Math.sin(o1.rotation / 180 * Math.PI) * s;
}
how can i find the rotation of an object ?