Hi All,
I am currently working on a 3rd person shooter game in Unity. At this point I have motion capture data for sneak attack along with the conventional run/walk/strafe movements.
Till now the Locomotion system has worked great wonders with the normal walk and run animations. I am however curious to know how to incorporate the Crouch Animation. I have configured my input settings such that once I press “c” the player goes in the crouch mode. Pressing “c” again makes him toggle back to normal walking mode.
Things I have tried already:
Assign a different locomotion group for crouch animation(s).
However there are very significant glitches in the movement of the player. When I toggle to the crouch mode then the player simply goes below ground, else it works great. I am also attaching the screen-snap shot of my error.
Observations:
- The idle crouch animation keeps the feet stuck to the same position with only the hip going down - making it look unrealistic.
I am not sure if it is necessary to define a different character controller for crouch animation as I am using the same character controller sized at the dimension of the character standing up-right.
Your answers are much anticipated and appreciated.
Thanks
Rajat
It’s a bit difficult to know what the problem is from the description. I have used the Locomotion System with crouch animations without problems before by putting them in a separate animation group.
Try to make a test where you blend between the various animations without using the Locomotion System at all. Are all the animations aligned consistently so that the feet step on the ground (and don’t intersect it or hover above it) in all cases?
we got our crouch anims working just fine. We made a second locomotion group called crouch.
what runevision is saying sounds very sensible, place your object at ground level in the base standing pose… then play all the animations as a test without the locomotion system. The feet should stay on the floor (except perhaps with jumping or falling animations)
perhaps you have a strange Y-translation (up/dn) built into your crouch animations ?
So, using Locomotion system , if we want to change between the 3 moving states, run/walk/crouch we should do 2 locomotion groups?
I asume that both need the idle pose, so the group well be like that
locomotionrun : idle /run /walk
locomotioncrouch : idel/crouch/walk
??
– but for me , the problem is that I don’t understand very well how Locomotion system differs between walk and run , inside a locomotion group, when you press a key?
Thank you very much!