Rotation Formula
Posted on 31. Mar, 2009 by thornyeternity in ActionScript 3 Snippets
Good formula for random rotation of object without going to far to either side:
box_mc.rotation = (Math.random()*2-1) * 180/Math.PI;
Posted on 31. Mar, 2009 by thornyeternity in ActionScript 3 Snippets
Good formula for random rotation of object without going to far to either side:
box_mc.rotation = (Math.random()*2-1) * 180/Math.PI;