itch.io is community of indie game creators and players

Devlogs

Logic Fix

Conservation of Momentum Demo (1D)
A browser game made in HTML5

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 10 MB
    Oct 28, 2024
  • 1D_Collision_PC-BUILD_v1.1.zip 23 MB
    Oct 28, 2024
Download Conservation of Momentum Demo (1D)
Leave a comment