Answer the question
In order to leave comments, you need to log in
2D object physics, how to make a collision with the surface?
I'm trying to make a 2D game on js (from scratch), I ran into a problem that objects fall through the floor, I roughly understand that this can be fixed with the help of vectors, but I don't know how.
The problem is that the world is updated 1000/60 (the usual setInterval for now), but during this time the object can fly more distance.
Perhaps there is some literature on this subject?
Problem screenshot:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question