PDA

View Full Version : Minimum rotation increment?



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!

senocular
August 18th, 2009, 10:47 AM
Yeah, there's some weirdness there. Its a known issue.

satprof
August 18th, 2009, 12:55 PM
Do you know any workarounds?

Is there some discussion of this somewhere? I searched but may not have used the right keywords...