technique

Collision Detection with Moving Objects

To know which way a moving rectangle should bounce, test its NEXT position against the obstacle separately on the X axis and the Y axis, reversing only the axis whose next position would collide.

Also called: swept collision per axis · next-position collision check

What it is

How it works

Parameters & tuning

Where it’s been used

Variants & neighbours

Go deeper


Revision 1 · 1 source · Something wrong? Tell us.