I'm having issues with my character in terms of gravity and the character bouncing up and down. You can find more information about it in the link below.
Character bouncing off ground due to gravity
I thought the answer below fixed it unfortunately it didn't after doing some more digging through the original platformer example on the app hub.
The bouncing issue was resloved in the following way in the original.
The velocity would be added to the position
position += velocity;
Then the position would values would be even out.
position = new Vector2((float)Math.Round(position.X), (float)Math.Round(position.Y));
The x movement is below
accerlation = 0.046875f
velocity.X = velocity.X + accerlation;
and gravity is being added like so
private float gravity = 0.21875f;
velocity.Y = velocity.Y + gravity;
The issue is that the values are so small that once they've been added they are taken off again resulting in the character not moving. What is the best approach to solving this issue ?
