Zero gravity

May 3, 2012 at 11:28 AM

How do I set gravity to 0?

I tried setting the gravity on "PhysicsCanvas" but it's not working.

<ph:PhysicsCanvas GravityHorizontal="0" GravityVertical="0" x:Name="cnvGame" Width="1366" Height="768" />

Aug 19, 2012 at 5:49 PM

For me it is not working too. Hope there will be a update in the near future.

Aug 27, 2012 at 2:17 PM

In code you can set it like this

"reference to your PhysicsCanvas".Simulator.Gravity.Y = 0;