hackclub / sinerider

💖 A game about love and graphing, built by teenagers.
https://sinerider.com
GNU Affero General Public License v3.0
568 stars 47 forks source link

Physics Bug: Formula Made Snowball Clip Through and Fly Away #549

Closed alhardwarehyde closed 10 months ago

alhardwarehyde commented 1 year ago

Description

From HN: I was able to solve the first puzzle by placing a 1/X singularity next to the snowball. It correctly rolled down but the just clipped through and blasted away. It is very hard to cover these sorts of cases with a naive physics model because the numerics get messy very quickly. Very cool project.

Screenshots

Screenshot 2023-05-09 at 10 55 33 AM

Additional information

No response

camdan-me commented 1 year ago

This seems like an edge case that probably isn't worth the effort to fix. I feel like this bug needs to be triggered intentionally, but I might be misunderstanding.

polytroper commented 10 months ago

In a way this is actually correct behavior, at least in the “point-body” simplified physics model used for the balls. Of course, it should really get stuck wedged in the graph, but there is no way to make that happen without greatly increasing the complexity of our physics engine.