top of page
Search

Sticking To Your Roots

  • Writer: jstndasilva
    jstndasilva
  • Mar 22, 2021
  • 2 min read

The Problem: Where's the Root?!?

So this week we decided that we needed to swap player avatars. The model we were using came with a weapon as part of the mesh, and that was a problem because we were unable to remove it from the mesh to replace it with a new weapon that the player might pick up when playing, like a different sword or a bow. So we needed to find a new model as well as animations to use. It did not take long to find a new model and animations to use, thankfully.


However, making such a big change came with its own problems, of course. Both the model and animation did not have a proper root joint in their skeletons. This meant that having proper root motion animations would be difficult and caused some animations to look off or just plain bad. The animations would cause the mesh to move from the initial position and when it ended it would slingshot back to that position.




The Solution: The Hip bone's connected to the... Root bone

My initial solution was to check off the Force Root lock flag on the animation which prevented the mesh from moving away but that caused the animation to look incorrect. To fix this I had to learn how to add new joints to skeletons and animations in Maya. So, I created a new root node for the skeletal mesh and every animation I needed for the player. For this node, I removed the x and z translation of the previous "root" node and applied it to the new root node so, for example, when the run animation played, the colliders and everything else would move along with it.

 
 
 

Recent Posts

See All
We learn from Our Mistakes

This was the final week of working on this project. I primarily try to fix the problem we had with saving from last week. Due to time...

 
 
 
Would You Like to Continue?

This was our final week to add anything new to the game. One thing we tried before but couldn't really figure out at the time was saving...

 
 
 
Going Code Blind

Finding and fixing bugs is a part of programming, and some bugs are very troublesome to find the root of their cause. Often times I find...

 
 
 

Comments


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2021 by C monkey. Proudly created with Wix.com

bottom of page