satprof
August 18th, 2009, 10:35 AM
Does anyone know if AS3 or FP9/10 enforces a minimum increment or resolution for the Sprite rotation property?
It seems to only allow rotations in multiples of 0.25 degrees.
For example:
var lines:Array = new Array();
for (i=0; i<2000; i++){
lines[i] = new Shape();
lines[i].graphics.lineStyle(.1, 0x000000);
lines[i].graphics.moveTo(0,0);
lines[i].graphics.lineTo(700,0);
addChild(lines[i]);
lines[i].y = 100;
lines[i].rotation = i* .001;
}
This draws the lines in groups at 0.25 degree spacing with gaps between them.
Any thoughts?
Thanks!
It seems to only allow rotations in multiples of 0.25 degrees.
For example:
var lines:Array = new Array();
for (i=0; i<2000; i++){
lines[i] = new Shape();
lines[i].graphics.lineStyle(.1, 0x000000);
lines[i].graphics.moveTo(0,0);
lines[i].graphics.lineTo(700,0);
addChild(lines[i]);
lines[i].y = 100;
lines[i].rotation = i* .001;
}
This draws the lines in groups at 0.25 degree spacing with gaps between them.
Any thoughts?
Thanks!