Introduction
Springs are one of the most powerful tools in any physics engine. On the surface, it may seem like they are only useful for creating oscillating motions, but we can use springs to model soft bodies or even cloth! In this chapter, we will learn how to use the spring formula to build soft body objects. By the end of the chapter, we will have a full cloth simulation working!
Up until this chapter, every rigidbody enjoyed having six degrees of freedom for motion. At the end of this chapter, we will introduce a way to constrain that motion using joints. In this chapter, we will build a simple distance joint that will remove a degree of freedom from a pair of rigidbodies.