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

Joints


In three dimensions, an object has six degrees of freedom. Three degrees of freedom come from translation and an additional three come from orientation. A constraint takes away one or more degrees of freedom. A joint is a type of constraint that limits the degrees of freedom between two objects. There are several common types of joints:

  • Distance Joint: This keeps bodies a set distance apart

  • Ball Joint: This limits translation to the pivot of two objects

  • Hinge Joint: This allows for rotation around a single axis

  • Slider Joint: This limits rotation and translation to a single axis

  • Fixed Joint: This does not allow movement

  • Motor Joint: This produces some kind of force

Several simple joints can be combined to create more complex joints. We can use joints to model hinges for doors, ragdolls that represent characters, or to simply stick objects to each other.

Getting ready

In this section, we will implement the simplest joint type there is—the Distance Joint. This joint will keep two particles...

lock icon
The rest of the page is locked
Previous PageNext Chapter
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