Skip to content

Instantly share code, notes, and snippets.

@nowri
Created March 12, 2012 14:33
Show Gist options
  • Save nowri/2022332 to your computer and use it in GitHub Desktop.
Save nowri/2022332 to your computer and use it in GitHub Desktop.
左上基準のオブジェクトをセンター基準で回転させる
var Rot:Number = 30;
mc.x += mc.height * Math.sin(Math.PI/180 * Rot)/2;
mc.y -= mc.width * Math.sin(Math.PI/180 * Rot)/2;
mc.rotation = Rot;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment