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

Linear Impulse


In this section, we will explore resolving collisions using Impulses. Remember that an impulse is an instantaneous change in velocity. When two objects intersect, we will find the collision manifold between the objects and use this manifold to figure out what impulse will resolve the collision:

We will build our impulse-based collision resolution in two parts. These two parts are linear and angular impulse resolution. In this section, we will resolve linear impulses. This means that objects will not rotate; they will fall, stop falling, and rest on each other. In a later section of this chapter, we will add a rotational impulse to make our physics simulation more realistic.

Getting ready

In this section, we will implement two functions: FindCollisionFeatures and ApplyImpulse. The FindCollisionFeatures function will return the collision manifold between two RigidbodyVolume objects, and the ApplyImpulse function will use this manifold to apply an impulse to two colliding objects...

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