- Home /
When Root Motion anims reset character position, collision objects are ignored
I'm using Root Motion for my character animations with mecanim.
After a root motion plays, the root position of the character resets to the new 'ending' position post-animation. This is all good, works great, EXCEPT that sometimes the root motion end position reset doesn't obey things like collision objects that are on the parent character (like a charactercontroller or capsule collider) and the character can end up going through walls etc.
Any ideas how I can resolve this?
Answer by gekidoslair · Nov 13, 2014 at 07:08 AM
Just ended up keeping a min/max bounds and checking the player's position. if it exceeds the min/max, then I slerp them back into position.
very annoying, still not sure why the collision system doesn't work in this scenario.
Your answer
![](https://koobas.hobune.stream/wayback/20220613171226im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Root Motion or CharacterController in FPS 1 Answer
Keeping characters within Fighting area 1 Answer
Problem with CharacterController, Climb Animation, and Root Transform Position Y 1 Answer
Target Matching in Mecanim not being accurate 2 Answers
Is it possible to add velocity to mecanim animation? 1 Answer