In this series we’re exploring a new part of the physics engine in Unity — the idea of joints that can connect one physics object to another.
There are Spring Joints, Slider Joints, Hinge Joints, etc. The one we’re looking at this week is called the Wheel Joint and it’s just like it sounds — makes it easy to attach a wheel to another physics body. In our demo game we’ll create the start of a monster truck racing game.
Besides the WheelJoint2D, we also look at two other topics that could come in handy in many different games:
- Making the camera follow a game object
- Using a timer to count up seconds on the screen
If you’d like more information on the topics covered in this series of videos, here are some links that will help:
In one of the scripts we used GameObject.FindGameObjectWithTag() but that has apparently been shortened by Unity. The way in the video still works, but you won’t find it documented. Instead, this is the new shortened version:
Slider UI Element
Introduction to WheelJoint2D (7:07)
Back to the Beginning 2D Game Development Dashboard