Training Center

Character Animation Scripting

Character Animation Scripting

Learn the basics of animation scripting in Unity! You'll learn how to import and script the animations of a robot model and also how to use animations in tandem with Unity's physics system, creating a punch animation that affects surrounding objects.

In this module you'll import a 3D model, control and script its animations, and integrate one of the animations with the physics system in Unity.

Additional Info

  • Runtime 53 min 12 sec
  • Software Unity
Login to download project files

Before you script any animations, you need to to reference information from your 3D modeling program like the animations' names and the frames they span. We also set up our model with a character controller.

Additional Info

  • Runtime 12 min 48 sec
  • Software Unity

Next we'll create a script to store information on the state machine, movement, and animation triggering of our robot. We also setup our robot's default state and animation.

Additional Info

  • Runtime 06 min 20 sec
  • Software Unity

To help us see how the robot's action state relates to the observed in-game actions, we're going to create a GUI Text object that reflects the current action state.

Additional Info

  • Runtime 03 min 20 sec
  • Software Unity

We create a function to handle the execution of the animations, and we set up logic so the player can cycle between performable actions.

Additional Info

  • Runtime 13 min 52 sec
  • Software Unity

Here we set up animations to fire as the character moves around the game world. Walk and run animations are triggered as the user presses the movement keys.

Additional Info

  • Runtime 09 min 16 sec
  • Software Unity

We set up an idling sequence and compensate for the way an animation changes the model's position and rotation to make the animation look correct in-game.

Additional Info

  • Runtime 24 min 04 sec
  • Software Unity

Learn how to enhance an animation's effect on the world around it by enabling a punch animation to add force to any rigidbody it comes in contact with.

Additional Info

  • Runtime 08 min 58 sec
  • Software Unity

We finish adding dynamic force application to a player's punching action and wrap up the Animation Scripting module.

Additional Info

  • Runtime 10 min 39 sec
  • Software Unity

Chapter List

Questions? ¿Preguntas? 有问题吗? Domande? Вопросы? 質問はありますか? सवाल? الأسئلة؟
This email address is being protected from spambots. You need JavaScript enabled to view it.

About design3

design3 is THE game production web portal. Whether you’re an industry veteran keeping up with new tools and trends or an aspiring developer searching for professional training, expert advice and career tips – design3.com is where you need to be.

Sign-up for our newsletter!

:

Copyright © 2006 - 2012 design3. All rights reserved.

Sign In or Become a member

Facebook user?

You can use your Facebook account to sign into our site.

Log in with Facebook

LOG IN