Below you will find some code that vividly illustrates my point. The problem is that the rotation of massive objects will result in jerky behavior on their outer extremes. It can even randomly go into a shake when moving occurs at its extremes. This only happens on large objects at their outer edge when their rotation is less than 1. I did this at 30/60/120 fps and I can see the same results.
I really need to find a way around this problem. You can test the code in mx or 8, not cs3. Any help would be appreciated. Thanks!
Code:createEmptyMovieClip("box", 1); box._x = 275; box._y = 2500; box.lineStyle(1, 0x000000, 100); colors = [0xFF0000, 0x0000FF]; fillType = "linear" alphas = [100, 100]; ratios = [0, 255]; matrix = {matrixType:"box", x:0, y:-10000, w:10, h:10000, r:(90/180)*Math.PI}; box.beginGradientFill(fillType, colors, alphas, ratios, matrix); //box.beginGradientFill("radial", [0x000000, 0x0000ff], [100, 100], [0, 255], // {matrixType:"box", x:0, y:0, w:10, h:10000, r:100}); box.moveTo(-5,0); box.lineTo(-5, -10000); box.lineTo(5, -10000); box.lineTo(5, 0); _root.onEnterFrame = function(){ if(Key.isDown(Key.LEFT)){ box._rotation -= 0.05; } if(Key.isDown(Key.RIGHT)){ box._rotation += 0.05; } if(Key.isDown(Key.UP)){ box._y -= 50; } if(Key.isDown(Key.DOWN)){ box._y += 50; } } box.endFill




Reply With Quote