What is the MTV (Minimum Translation Vector) in SAT (Seperation of axis)? and how can i use it?
Im trying to create my first game, where a ball can hit a a static brick (rectangle). Now if a ball collides with a brick, then i need to figure out which side the ball collided with so i can tell the ball which direction it should bounce off to.
For example, if a ball is heading nortwest and hitting the brick on its right side, then it should bounce in a northeast direction.
however if the ball hit's the bottom side of the brick, then the ball should be heading southwest.
So can the MTV be used in this situation? can MTV tell me which side of a rectangle the ball has impacted?
Please note i have implemented SAT in my game, and the collision detection works fine, my question now is, can i use MTV to actually handle a collision response?
Any help is appreciated.