Week 3 Tutorial - Playable Character in Unity


For the tutorial exercise, the goal was to import the character that had been animated in Blender into Unity to become a playable character.

My character animated and moving around inside a Unity scene

Prior to adding the character, I made some visual changes so that the character looked less generic and more fitting to the scene.  Once in Unity, I wrote a simple script to utilise Unity's Character Controller and make the player controllable with the WASD keys.  The player also has a controller for the animations, which receives information from code to tell it which state the player is in, and then plays the appropriate animation for the scenario.  The controller use a "Blend" parameter which is a number, making it comparable to a slider rather than an on-off switch.  This helped make the transitions between walking and idle animations smoother, as the character snapping between different poses would look unnatural.

Leave a comment

Log in with itch.io to leave a comment.