Skip to content

Instantly share code, notes, and snippets.

@caubry
Last active December 14, 2015 14:08
Show Gist options
  • Save caubry/5098527 to your computer and use it in GitHub Desktop.
Save caubry/5098527 to your computer and use it in GitHub Desktop.
private var angle:Number = 0;
private var speed:Number = 5;
private var radius:Number = 30;
private function circularMotion():Void
{
var rad:Number = (angle / 180) * Math.PI;
clip._x = clip._x + Math.cos(rad);
clip._y = clip._y - Math.sin(rad);
angle -= speed;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment