Suppress bouncing

Feb 22, 2008 at 11:41 AM
Edited Feb 22, 2008 at 11:41 AM
Hi,

i am using farseer physics to control the player movement in my shooter and it works well.
but i have got the following problem: i set the players body rotation to 0 in every call of the update method. When i do this and the player falls down, he bounces off the ground. How can i suppress this? I feel a littlebit helpless...

Daniel
Feb 22, 2008 at 5:10 PM
Have you tried setting the geometry's RestitutionCoefficient to 0?

I believe you could also supress rotation by setting MomentOfInertia to float.PositiveInfinity, which may resolve some physics issues with lost momentum.
Coordinator
Feb 22, 2008 at 5:34 PM
Yes, you should not directly be reseting rotation every loop. Yota gas it right, set the MomentOfInertial to float.PositiveInfinity
Feb 23, 2008 at 12:45 AM
I agree with Yota, setting the ResititutionCoefficient to 0 on both the player's body and the ground should do the trick.
Feb 24, 2008 at 4:52 PM

rballonline wrote:
I agree with Yota, setting the ResititutionCoefficient to 0 on both the player's body and the ground should do the trick.


Thanks. Works like a charme :-)