In this Unity game development tutorial we're going to look at how we can combine a Character Controller with Root Motion, to make the movement perfectly match the animation.
We'll start with an existing scene that has an animated character whose movement is controlled by a script.
We'll then convert this scene to use Root Motion to move the character, making use of the OnAnimatorMove method to utilise the movement of the animation when moving the Character Controller.
The project files are available to our patrons here:
► / 56681787
Want to follow along? This project is a good starting point
► / 56046140
The final script can be found here
► https://dotnetfiddle.net/gBeb0M
Help support our work:
► Patreon: / ketragames
► Ko-fi: https://ko-fi.com/ketragames
Follow us:
► Ketra Games: http://www.ketra-games.com
► Patreon: / ketragames
► Twitter: / ketragames
► Facebook: / ketragames
Introduction - 0:00
Converting the scene to use Root Motion - 0:50
Using Root Motion in combination with the Character Controller - 5:42
Solving sliding foot issue - 8:54
Summary - 11:45
#KetraGames #LearnUnity #UnityTutorials #UnityTips
Watch video Using Root Motion with a Character Controller (Unity Tutorial) online, duration hours minute second in high quality that is uploaded to the channel Ketra Games 28 September 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 47,967 times and liked it 1.1 thousand visitors.