PurpleKingdomGames / indigo

An FP game engine for Scala.
https://indigoengine.io/
MIT License
650 stars 60 forks source link

Physics: Box corner collisions are bad, need a rethink. #693

Open davesmith00000 opened 9 months ago

davesmith00000 commented 9 months ago

Problems:

davesmith00000 commented 4 months ago

I think, for AABB boxes, one thing is just to bias restitution in the direction of the least amount of overlap (I.e. only push away one one axis, and the axis is the shortest one). Essentially be less clever and it'll probably look ok.

I think with the changes last made around iterative solving, this might work for the platform problem.