Jump to content
Posted 12 June 2012 - 02:36 PM
Posted 17 June 2012 - 02:18 PM
Hey. I am working on a 2D Terraria-Like game, and I needed some help with the movement. To handle both collisions and physics, I am using the Farseer Physics Engine. I have two questions, which are probably quite simple.
1. How can I make my character stop moving once the movement keys are released. With the code below, the character still continues to roll:
2. Can I make the character not bounce at all after colliding with a platform? I have set the RestitutionCoefficient to 0, but it still bounces a very small amount.
There is a propriety in the class Body name FixedRotation. Set it to true to have the character keep its rotation to 0.
3. Is there a way to prevent the character from rotating its texture?
Edited by Bayinx, 17 June 2012 - 02:25 PM.