Game Development Reference
In-Depth Information
Conclusion
So, reaching this far, we've created a working and flexible PlayerController class offering universal
first-person functionality that works on both desktop and mobile devices, and can also collect
power-ups whenever it intersects them in the scene. Further, the controller implements health and
death functionality. By now, you should be able to do the following:
Create a universal First Person Controller
Understand Platform Dependent Compilation
Understand sine waves and smooth motion
Create a head-bob animation for a camera
Integrate the PlayerController into the event and notification system
Handle collision events
Maintain collected cash
Generate procedural textures
Understand the limitations of GUIs and OnGUI
Use Mecanim and the Animator to define the logic for animations
Maintain Player health
 
Search WWH ::




Custom Search