This project has moved and is read-only. For the latest updates, please go here.

Applying Forces

Topics: Developer Forum, User Forum
Apr 2, 2012 at 9:56 AM


   If i want to apply gravity only for certain bodies, what should i do.    (My guess is to disable gravity, apply some downward force for those objects , but on what event should i apply it )

   Also, if i have some bodies moving horizontally, and if vertical bodies hit them, they should not change the path of the horizontally moving bodies.   Any suggestions in this scenario  ?

Apr 4, 2012 at 10:12 AM

1-  you can just play with the body's x or y in the UPDATE method.

2-  you can make their bodies' static