- Home /
Use of Locomotion system inside unity
I just wanted to ask something, that is nearly a myth around Unity3D. Is there any Locomotion system tutorial? Because, mainly, documentation is very scarce. For example, what is responsible for what, when you import your character with rig, what should, and should not be imported, so that the character does not glitch like it has epilepsy seizures. Which animations you need, and how do you use the system itself so that only legs remain in jurisdiction of Locomotion, if another animation is started through script.. A million questions. Now, to pinpoint problems, rules of proper using, and everything, you will need probably a couple of years, after which you will give up. So, the only solution is tutorial of some kind. At last, is there at least one?
Couple of years? Couple of weeks more like, unless you're really lazy.
Yeah, couple of weeks.. "A million questions. Now, to pinpoint problems, rules of proper using, and everything, you will need probably a couple of years, after which you will give up." I meant on using forums like this. Not that this is a bad forum, it's excellent, but you can ask a question at a time, and there is a lot of questions. And no one is here to solve just my problems, so I can't (and won't) leech on to someone and bore him to death until he shows me how it's done.
Answer by nastasache · Dec 02, 2011 at 11:28 PM
The best tutorial - finally, working for me - it's under [Locomotion System zip file]/Documentation/documentation.html
It's a step by step tutorial. Just be carefully to follow it with hugest attention. For example, if you forget to set the 'Foot Width/Length/Offset' variable, the L.S. will not work.
Maybe I am wrong, but I understand that the system it's working pretty simple: doesn't matter what animation you have for a character - the most important it's to have animated the legs, and the leg related bones must be there: the leg part (from pelvis to toe) of the your animations will be overwritten by the L.S., if you choose to use it. The remaining part of the animation (upper, to head of the character) will stay intact as in your animation.
I don't tested in any way, but I suppose you can to overwrite these above L.S. rules back, by your scripts (you can do anything with scripts, right?), running other animation on given conditions.
Unfortunately, I see we haven't reached an understanding. You see, I can setup Locomotion. Foot colliders are ok, everything is fine, BUT. I have 2 animations. "Idle" "Walk"
Now, it should work allright. I thought it does work, when i noticed that when I walk, it plays "Walk" animation, but only to legs. Upper body is playing "Idle". Why is that? One more thing. When I turn on (actually, it is by default "on" ) the I$$anonymous$$ solvers, character starts to move choppy. For example. I have a lot of other questions, but, I don't wanna spam. I can't find anything about that in documentation. $$anonymous$$aybe my documentation is shortened version, or I don't know. I consulted the documentation when implementing L.S. , just so you know.
Hi Lemi, I can't help too much because I am beginner and also I have a lot of questions. I just try to share my experience looking for corrections. But I am in patience, my own exercises and existing answers here are sometimes better than reading documentation. Back to the your above problem: I tested idle+walk+L.S. with Constructor Character from default assets and also with a different character; upper body animation and legs animations looks working as expected for me, there is no mixing walking by locomotion system with idle animation from character animation; when walk, the movement of arms are different by idle position; note you have option 'Render Animation States' option in Leg Animator scrips to see some stats on screen about character animation. Regarding I$$anonymous$$ I don't know - the same for me if turn it off; but I don't need to turn it off.
Aha, ok, well, nothing. Trial & error will be the way of tackling this. Thanks for the comeback!
Answer by Goat · Dec 04, 2011 at 06:45 PM
Hey guys,
I think this is the page you want:
http://unity3d.com/support/documentation/Manual/Character-Animation.html (Blending / Layers / Additive)
I think the Locomotion system may have been obsoleted by newer versions of Unity, others may correct me. If not it will be by this animation company Unity has bought. It seems if you look at the 3D Platformer and Penelope (iPhone) and look at how animation was done there just copy those animation objects and modify them. At least that seems to be what everyone is doing.
Ciao
Thanks, I'll check that out in addition. Thanks for the reply!
Your answer
![](https://koobas.hobune.stream/wayback/20220613061708im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Locomotion System Basics 1 Answer
How to apply movement to a ragdoll? 1 Answer
LocomotionSystem for preventing punching arm to go through head? 1 Answer
Grid Based Movement (Pokemon-like) 1 Answer
locomotion on iphone? 1 Answer