MVT dividing axis theorem along one axis

I am having trouble calculating a 3D penetration vector along one axis. I have already implemented SAT and it works. I want to calculate how much I need to compensate for the first box from another, so that it always sits on top of the others. View of a simple box with a very long box.

How should I continue to search for an offset that will push one object in the direction of the specified axis.

enter image description here

+4
source share
1 answer

; , - A, AMIN AMAX, B (BMIN/BMAX).

, -, , , AMIN < BMIN < AMAX < BMAX, BMIN < AMIN < BMAX < AMAX. .

AMAX-BMIN - , , , .

, , , , - . ( " ", Google.)

, , , , ( ).

Googling " " , , : http://www.dyn4j.org/2010/01/sat/. , , , SAT.

... . , ( ), , ( ), () ( ), , .

+1

Source: https://habr.com/ru/post/1654683/


All Articles