September 2013
Beginner
292 pages
6h 19m
English
We're going to add a Rigidbody Component to apply physics to Player. To stop Player from dropping like a rock, out of view of the camera, we'll check Is Kinematic in the Rigidbody properties to turn off the effect of physics. When any of the play States are active, we'll uncheck Is Kinematic in code to allow physics to affect Player.
The following screenshot shows the code for moving Player using physics forces:
