Game Physics Cookbook by Gabor Szauer

Game Physics Cookbook by Gabor Szauer

Author:Gabor Szauer [Szauer, Gabor]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2017-03-24T04:00:00+00:00

If every axis has been checked and they all overlap the two triangles are intersecting: return true; // Seperating axis not found }

How it works…

The preceding code should look familiar by now. The only difference between SAT tests of different objects is the axis of potential separation. The potential axes of separation for arbitrary convex shapes are:

The face normals of the first object

The face normals of the second object

The cross product of the edges of the first object against the edges of the second object


Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.