Reader small image

You're reading from  Game Physics Cookbook

Product typeBook
Published inMar 2017
Reading LevelIntermediate
PublisherPackt
ISBN-139781787123663
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Gabor Szauer
Gabor Szauer
author image
Gabor Szauer

Gabor Szauer has been making games since 2010. He graduated from Full Sail University in 2010 with a bachelor's degree in game development. Gabor maintains an active Twitter presence, and maintains a programming-oriented game development blog. Gabor's previously published books are Game Physics Programming Cookbook and Lua Quick Start Guide, both published by Packt.
Read more about Gabor Szauer

Right arrow

Manifold for spheres


In order to resolve collisions between objects that have volume, we need to learn more about the nature of the mentioned collisions. This additional information is known as a Collision Manifold. A typical collision manifold usually contains the following things:

  • The collision normal

  • The penetration distance

  • A set of contact points

Additionally, a manifold might also contain the following things:

  • Pointers to the colliding objects

  • The relative velocity of the collision

  • Nature of the collision (no collision, colliding, penetrating)

Let's assume that we have two colliding objects, A and B. The collision normal of the manifold between the two, tells us what direction each object needs to move in to resolve the collision. If A moves in the negative direction of the normal and B moves in the positive direction, the objects will no longer intersect.

The penetration distance of the manifold is half of the total length of penetration. Each object needs to move by the penetration distance...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Game Physics Cookbook
Published in: Mar 2017Publisher: PacktISBN-13: 9781787123663

Author (1)

author image
Gabor Szauer

Gabor Szauer has been making games since 2010. He graduated from Full Sail University in 2010 with a bachelor's degree in game development. Gabor maintains an active Twitter presence, and maintains a programming-oriented game development blog. Gabor's previously published books are Game Physics Programming Cookbook and Lua Quick Start Guide, both published by Packt.
Read more about Gabor Szauer