Game Development Reference
In-Depth Information
Building character representation
With these requirements in mind, let's build the framework:
1. From GameObject | CreateOther , select Capsule , and place it at ( 0 , 2.5 , 0 ),
as shown in the following screenshot:
2. Name the capsule Player in the Inspector pane.
3. Create a cube in a similar fashion, and parent it to the capsule by dragging
it onto the hero. Scale it to ( 0.5 , 0.5 , 2 ), and set its local position to ( 0 , 1.5 ,
0.5 ).
4. Name the cube object Hat .
Congratulations! You now have a representation of our hero in the game. The Hat
object will serve as a visual cue for us in this chapter as we refine the controls and
camera code.
Search WWH ::




Custom Search