I have there serveral platforms. I would like to allow the player to collide only one time with the object! Hope you can help me
Farseer Bodies have a method like so:
What you are asking for is so that a body will only collide with another body once, so once those two bodies are separated from each other, they will no longer collide. Luckily, Farseer bodies come with an
This will allow those two bodies to collide once, but after they separate they will no longer collide.
Depending on how your game works though, the
You might also want to look into Collision Categories. You can define a Body's collision category and also which categories it collides with. This way, a body can avoid collisions with a whole group of other bodies, without having to use
Well you can always attach an event to the bodies and when they collide with something check their ID's and only allow the collision if that was the first time (could do that with a bool)