Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var diff:Number = Math.atan2(Math.sin(angle-cangle),Math.cos(angle-cangle));
- cangle += (diff > 0) ? .1 : -.1;
- xSpeed = Math.cos(cangle)*3;
- ySpeed = Math.sin(cangle)*3;
- rotation = cangle * (180/Math.PI);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement