M
M
Michael2015-10-02 21:53:37
JavaScript
Michael, 2015-10-02 21:53:37

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: 514b3aeb8f2940f181a769a20eff6dbd.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
patch1, 2015-10-02
@notiv-nt

link to article

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question