Physics breaks down after scaling down the world

Hi,

I am making a bow and arrow game using WCK engine. And i have made a camera using the technique where you scale the world by scaling the camera object for zooming in the Physics world. Everything works fine when the camera is not scaled. But as soon as i scale the camera for scaling the Physics world. The world scales but the physics goes awry. The physics doesn't behave as i want.

Any kind of help would be appreciated. Thanks.
Assuming, by Physics world you are referring to the box2d world, do you really need to scale the physics world? I haven't tried it yet, but why don't you just scale the Flash/display world?
I just did a quick test and it seem to work fine with object collisions.

Is your code something along the lines of:
Code:
world = new wck.World;
...
world.scaleX = world.scaleY = newScale;
Yeah. I overrided scrollRotation as suggested in this topic viewtopic.php?f=19&t=5994


Code:
public override function scrollRotation():Number
      {
         
         //if orient to gravity set, do rotations of the world based on gravity
         if (orientToGravity)
         {
            var b:BodyShape = focus as BodyShape;
            var g:V2 = getGravityFor(V2.fromP(pos).divideN(scale), b ? b.b2body : null, b);
            return (Math.atan2(g.y, -g.x) * Util.R2D) - 90;
         }
         
         //if orient to focus set, manipulate the world based on the properties of the focus object (ie. the camera)
         if (orientToFocus)
         {
            scaleX = focus.scaleX;
            scaleY = focus.scaleY;
            return focus.rotation;
            trace(this.x);
         }
         
         //else just return standard rotation
         return rot;
      
      }
Collisions are working fine But in my game i have applied impulse to my arrow which is made up of three parts. But the parts are breaking off if i scale down the world.
It's acting weird even when i scale the movieclip on which i have added the box2d world. Any suggestions for building a camera for zooming and panning?
I just skimmed through the link you posted and it seems like that others were able to make it work. Perhaps, you may need to look at your engine.

Instead of adding the world to your movieclip, create the world first, and then add your movieclips. Then scale the world, as I referred to in my earlier post.

Perhaps my variable naming wasn't be best, so:
Code:
myWorld = new wck.World;
myWorld.scaleX = myWorld.scaleY = newScale;
I can't do that as i am working on a template and therefore i have to create a movieclip and add my world there.
Any Help? The Physics works properly till 0.6 scale, after that it breaks down.

Original thread: https://box2d.org/forum/viewtopic.php?t=8345