what is the difference between BeginContact/PreSolve

I know in PreSolve you can cancel a collision from occurring, but I still don't understand why all that can't happen in begin contact. Also why is there a post solve when an end contact would suffice? Are there different things happening in these cases?

I know there's a difference since I am getting differing results of velocities and such from both...
Fixtures can remain in contact for multiple timesteps, causing callbacks like this:

BeginContact

PreSolve
PostSolve
PreSolve
PostSolve
...etc

EndContact
to expand upon the answer already given:

PreSolve happens for objects which intend to collide and react (this excludes sensors). durring presolve you can calculate various details about the impending collision and even set the collision to false to allow them to pass through.

begin contact happens for touching objects. (this includes sensors)
irresistible force wrote:
Fixtures can remain in contact for multiple timesteps, causing callbacks like this:

BeginContact

PreSolve
PostSolve
PreSolve
PostSolve
...etc

EndContact


sketchbookgames wrote:
to expand upon the answer already given:

PreSolve happens for objects which intend to collide and react (this excludes sensors). durring presolve you can calculate various details about the impending collision and even set the collision to false to allow them to pass through.

begin contact happens for touching objects. (this includes sensors)


Thanks guys! What you say makes a crazy amount of sense and is actually really beneficial to what I'm trying to do.

Original thread: https://box2d.org/forum/viewtopic.php?t=7510