I'm not sure this is the correct subforum, but hey, I got your attention didn't I? 😉
Anyway, some details: I'm using the Box2D.XNA port to create a tile based 2D platformer of sorts. In the most simple of levels I would have a long, rectangluar static body to represent the ground and a smaller, dynamic rectangluar body to represent my character. Both of these objects have no restitution, so that the character may land on the ground without bouncing. The character also has no friction.
The issue I am coming across is that from seemingly random heights and velocities, the character body will collide with the ground and then either A) bounce a small amount and then penetrate the ground body or B) simply penetrate the ground body. About 20% of the dynamic character body sinks into the ground. During this time, the BeginContact method of my ContactListener is not being called, which to me means the simulation doesn't think these two objects are colliding when they clearly are.
Is this an issue with this particular port or with Box2D in general? I want to lean towards the former, but I'm not sure. It seems like this would be a fairly common scenario for games.
Hopefully someone can help. Please let me know if I can provide any more information that may be helpful. Thanks!
Anyway, some details: I'm using the Box2D.XNA port to create a tile based 2D platformer of sorts. In the most simple of levels I would have a long, rectangluar static body to represent the ground and a smaller, dynamic rectangluar body to represent my character. Both of these objects have no restitution, so that the character may land on the ground without bouncing. The character also has no friction.
The issue I am coming across is that from seemingly random heights and velocities, the character body will collide with the ground and then either A) bounce a small amount and then penetrate the ground body or B) simply penetrate the ground body. About 20% of the dynamic character body sinks into the ground. During this time, the BeginContact method of my ContactListener is not being called, which to me means the simulation doesn't think these two objects are colliding when they clearly are.
Is this an issue with this particular port or with Box2D in general? I want to lean towards the former, but I'm not sure. It seems like this would be a fairly common scenario for games.
Hopefully someone can help. Please let me know if I can provide any more information that may be helpful. Thanks!