Closed Exide closed 6 years ago
MTV = Minimum Translation Vector
It is the smallest overlap on a non-separated axis. Basically, the shortest distance the object needs to be translated to no longer be colliding.
https://github.com/Exide/top-down-arena-shooter/blob/5fa793f973319074e6c45ca0cd091593fc5b6c96/utils/sat.js#L23-L27
Looks like we're already keeping track of the MTV. We're just not returning it.
MTV = Minimum Translation Vector
It is the smallest overlap on a non-separated axis. Basically, the shortest distance the object needs to be translated to no longer be colliding.