We can create a nice player capsule in just a few steps:
- Click on Create | 3D Object | Capsule from the Hierarchy panel and name it Player.
- Select the Player GameObject and click on Add Component at the bottom of the Inspector tab. Search for Rigidbody and hit Enter to add it.
- Expand the Constraints property at the bottom of the Rigidbody component:
- Check the boxes for Freeze Rotation on the X and YÂ axes.
- Select the Materials folder and click on Create | Material. Name it Player_Mat.
- Change the Albedo property to a bright green and drag the material to the Player object in the Hierarchy panel:
You've created the Player out of a capsule primitive, a Rigidbody component, and a new bright green material. Don't worry about what the Rigidbody component is just yet—all you need to know right now is that it allows our capsule to interact...