Game Development Reference
In-Depth Information
Mission briefing
In this project, we will start by setting up the animation clip from the imported FBX model
with animation (walk, run, jump, and fall), which is created using other 3D software, such
as 3D Studio Max, Maya, Blender3D. Then, we will create Animator Controller and set
up the Mecanim animation system using the Animator view.
Next, we will add Character Controller , instead of the Physics component, Rigidbody .
Character Controller will give us the ability to access collision detection as well as the
Move() function, which is very easy to use.
Note
We will use the Move() function to move our character while playing the animation. This
function can be accessed from the CharacterController class when we add the
Character Controller component to our game object. The Move() function will return
CollisionFlags bitmask , which will tell us which part of our character hits other
collider objects.
Then, we will create the third-person character controller script to control our character's
walk, run, and jump by using the Move() function in the Character Controller
class. In this step, we will also create the OnAnimatorMove() function to tell Mecanim
to play the correct animation clip. Next, we will create the camera script to follow our char-
acter. We will then attach the script to our character and make it move on the level.
Search WWH ::




Custom Search