Logic Fix


Fixed an issue where given certain initial conditions for the two carts, they would continue to be in collision and would stick together regardless of the proper physics.  It was faulty logic on my part, of course.  I revised the logic so that the calculation to resolve the two velocities after a collision would only run once.  The solution that I have is not terribly portable, but it works for this demo.

Files

1D_Collision_WEB-BUILD_v1.1.zip Play in browser
19 days ago
1D_Collision_PC-BUILD_v1.1.zip 23 MB
19 days ago

Get Conservation of Momentum Demo (1D)

Leave a comment

Log in with itch.io to leave a comment.