- Home /
Locomotion System (By Rune Skovbo Johansen)
How locomotion system identifies the animation that makes walking and those animations that make run? By the duration of the animations?
Thanks!
Could you please explain better? $$anonymous$$aybe I'm missing something but you just seem to be asking how to loop animations? :/
I was confusing about how the script classifies each motion and make the walking cycles. i.e.: If i put only the eating wolf animation in locomotion group, the wolf will walk with the 'eat motion', but if i put the gallop motion too, he's will run normally. The script classifies the better animation for run and walk, but how? (this was answered below) Now i'm going to understand the Run Strafe Left/Right motions. How they are identified.
Answer by sneftel · Jun 23, 2011 at 02:49 PM
It doesn't know or care about walk versus run; all it cares about is velocity. It determines their velocity by extrapolating a velocity from each leg's support phase (the time during which it is on the ground) and its foot displacement during that phase, and averaging the results. So for instance, if each foot is on the ground for 60% of a two-second cycle, and moves from z-position 1 to z-position -1 during its support phase, the calculated velocity is 1.67.
I'm trying to create three different velocities to run. i.e.: Velocity 1: walk animations; Vel. 2: run animations; Vel. 3: run very fast animation.
Thanks!
I can confirm that this explanation is correct. :) Also, having 3 different velocities to run should work fine with the system.