The following steps demonstrate how to create a spot for the cherry on the Cucumber Man's right hand.
- In the Hierarchy panel, expand the CucumberMan object until you see Character1_RightHand.
- Right-click Character1_RightHand and select Create Empty.
- Rename the new GameObject to cherrySpot. This will be the spot where we render the cherry.
Your CucumberMan object's hierarchy should look as follows:
- Using the transform tools, move the cherrySpot GameObject so that it is inside the Cucumber Man's right hand. Your placement should be similar to what is displayed here:
We will need to add a Rigidbody to the Cherry prefab so we can instantiate and throw it during runtime.
- In the Project panel, select Assets | Cherry | Cherry.Prefab
- In the Inspector panel, click the Add Component button
- Select Physics | Rigidbody
- Uncheck the Use Gravity option
- Expand the Constraints section of the Rigidbody component
- Check all Freeze Position and Freeze Rotation boxes
Next, we will add the Cherry prefab to our scene.
- Drag the Cherry prefab from the Project panel to the Hierarchy panel, making it subordinate to the cherrySpot game object.
- In Scene view, zoom in and adjust the location of the cherrySpot so the cherry looks as if the Cucumber Man is holding it. A suggested placement is shown here: