Different result in local machine and simulator for metro style app

Jul 21, 2012 at 6:31 AM
Edited Jul 21, 2012 at 6:32 AM


I am developing one game with windows 8 and Farseer physics.

When I play the game in local machine while development, the result is excellent but when I check the same result in simulator, the behavior of object seems different on both. The main issue is dynamic objects jumps sometime in the simulator. For that, I tried remove restitutionCoefficient from floor and objects but still issue is same? Can anyone please advice on this?

Here is my code:

<FarseerHelper:PhysicsCanvas x:Name="PhyCanvase">

 <FarseerHelper:PhysicsSprite x:Name="cnvBox" Height="64" Width="64" Loaded="cnvBox_Loaded">

<Image Source="box.png" ></Image>


<FarseerHelper:PhysicsSprite x:Name="Floor" Canvas.Top="692" Width="1310" Height="120" IsStatic="True" FrictionCoefficient="1" RestitutionCoefficient="0.4"/>



Vertices ver = PolygonTools.CreateRectangle(0.53f, 0.53f);

PolygonShape poly = new PolygonShape(ver, 1.0f);


Fixture fix = cnvBox.BodyObject.CreateFixture(poly, cnvBox);


fix.Body.Friction = 0.5f;

fix.Body.Restitution = 0.3f;

Thank you in advance.

David Jacob

Aug 27, 2012 at 2:19 PM

The simulator is kind of buggy and does not have a lot of resources. Could just be an issue with the performance not keeping up. Hopefully! : )