O'Reilly logo

Learning Game Physics with Bullet Physics and OpenGL by Chris Dickinson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Soft Body Dynamics

Soft bodies are an alternate type of collision object to rigid bodies; they deform as a result of collisions and that allows us to simulate objects made from soft and malleable materials. In this chapter, we will be exploring the nuances of soft body physics and adding a soft body to our scene.

Note

Continue from here using the Chapter9_SoftBodyDynamics project files.

Soft body requirements

One way to think of soft bodies is having a non-rigid constraint on each vertex. When one vertex is moved, the rest move with it, but not to the same extent, and each tries to maintain their distance from their nearest neighbors, or in other words, maintain their original pose. Thus, with a robust constraint system in place (like Bullet ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required