x


Locomotion help - head-spinning like Linda Blair

Anyone know about this Locomotion System? I have one walk state, one idle state, and one gesture (pointing). He walks. He idles. No problem.

When I play the 'pointing' animation, he points. Then his head spins around like a possessed child. I tried restoring the idle and walk states, but I can't seem to make it stop. The Locomotion System does not go back to using the walk or idle states, keeps the 'pointing' animation it seems.

Anyway, I gotta figure I'm missing something simple. How do you play an animation that is not locomotion-related? I also tried making it a 'grounded' animation but it didn't help.

more ▼

asked Aug 18 '11 at 09:01 PM

DaveA gravatar image

DaveA
26.5k 151 171 256

(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

Found it. Needed to crossfade back to "locomotion"

animation.CrossFade("locomotion",0.5f);
more ▼

answered Aug 18 '11 at 09:24 PM

DaveA gravatar image

DaveA
26.5k 151 171 256

(comments are locked)
10|3000 characters needed characters left

Yeah if you could share how to fix this problem with crossfade It would be very appreciated.

more ▼

answered May 17 '12 at 06:21 AM

ilwc gravatar image

ilwc
1 2 3 4

See the answer below (you should not answer, but comment). And the fix is in my answer. That happens after the 'point' animation plays.

Jun 27 '12 at 09:09 PM DaveA
(comments are locked)
10|3000 characters needed characters left

I'm having a similar problem, but my whole avatar spins on the spot when it gets to its destination using a click to move script...gets worse when it is running..where did you put that crossfade? Cheers.

more ▼

answered Oct 17 '11 at 01:49 AM

wheelbarrow gravatar image

wheelbarrow
18

Please, post a new question, not an answer to an existing, already solved question!

Oct 17 '11 at 01:50 AM syclamoth

Or comment on the accepted answer

Oct 19 '11 at 12:08 AM DaveA

I have a 'target reached' section of code which executes when the bot is within a given distance from the target (like .5 meters), I put it there.

Oct 19 '11 at 12:10 AM DaveA
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3807
x98

asked: Aug 18 '11 at 09:01 PM

Seen: 1255 times

Last Updated: Jun 27 '12 at 09:09 PM