- Home /
How to climb stairs / slopes with Mecanim?
Mecanim Humanoid system is great and easy to use indeed. But I have no idea how to make a bipedal character climb stairs.
If I adjust the stair height properly, I can somehow cheat the effect. The main problem is planting the feet at the correct place.
In case of walking / running on slopes, feet don't plant properly.
Is it possible to use my walk-cycle or run-cycle animation to do this properly? Or, will I have to make new animation for climbing stairs?
I am using capsule collider with Rigidbody instead of Character controller.
Thanks in advance.
Answer by TonyLi · Nov 27, 2013 at 03:05 PM
Mecanim has similar Inverse Kinematics functionality to the legacy Locomotion System, but it requires Unity Pro.
Thanks for replying. We have Unity Pro here. Just read the doc but I still don't have a clear idea on how to use this system to make a character walk / run on stairs / slopes. Could you please explain a bit? Thanks in advance.
This thread has a good discussion and some code: http://forum.unity3d.com/threads/184363-$$anonymous$$ecanim-Foot-Placement
Thanks TonyLi, that's what I needed. Really appreciated.
Your answer
Follow this Question
Related Questions
Mecanim Controller 1 Answer
Climbable ladder for 2D game 2 Answers
Slope Limitation for Rigidbody Conundrum 3 Answers
Best climbing system! 1 Answer
slope and First person controler 1 Answer