This chapter will go over an example of some basic usage of a physics component called the Configurable Joint, which can be used to bind GameObjects together with the physics system. We’ll use it to create a chain of objects, each one attached to the one above it to create something like a rope. At the bottom of the rope, we’ll attach a sphere that will swing with the rope. Our player can use their “telekinesis” to pull the sphere or its joints, making it something like a wrecking ball.
42. Joints and Swings
Get Game Programming with Unity and C#: A Complete Beginner’s Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.