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

Angular Velocity


With the PhysicsSystem updated, we can now simulate rigidbodies colliding in a linear fashion. This linear collision does not look realistic. To make our simulation more lifelike, we must add Linear Velocity to the rigidbodies. Every object will rotate around its center of mass. To keep the math simple, we assume that the center of mass for every object is at its world position.

In order to rotate an object, we have to store its orientation and understand the forces that affect this orientation. These forces are the Angular Acceleration, Angular Velocity, torque, and the moment of inertia. Each of these topics will be discussed in detail.

Angular Velocity and Acceleration

Angular Velocity is measured in radians per second (). Angular Acceleration is measured in radians per second squared () . Angular Velocity is the first derivative of orientation; Angular Acceleration is the derivative of angular velocity:

We will store angular velocity as a vector. The direction of this...

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