This is something I always forget to do when working with sine and cosine; so I finally just made it into it's own function. (usage would be along the lines of: velocityX += Math.cos(degreesToRadians(movieClip.rotation)) * speed;)
- private function degreesToRadians(degrees:Number) : Number
- return degrees * Math.PI / 180;
You need to login to post a comment.