x


blending animation with mouseinput (c#)

Greetings!

So I animated this cilinder as an experiment for a future project. One animation where it bends forward,one for backwards, left and right.

I want the animations to play depending on the mouse axis,For wich I was using Input.GetAxis("Mouse Y")>0.5f and so on. So far so good.

But I don't want the full animation to play the second my mouse goes in one direction,It should only play partly depending how far I move my mouse, I think this would be achieved with animation.time (or whatever it was), but I'm not sure how to handle it.

And Finally, all 4 of those animations need to blend together,so that if I move the mouse horizontal and vertical at the same time, the animation blends together nicely. I've read up on blend modes, but combined with the mouse control it just doesn't seem to be as easy thing to do.

Any tips are appreciated!(c# answers prefered)

more ▼

asked Aug 19 '12 at 01:26 PM

Glowzone gravatar image

Glowzone
1 1

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

0 answers: sort voted first
Be the first one to answer this question
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:

x3773

asked: Aug 19 '12 at 01:26 PM

Seen: 201 times

Last Updated: Aug 20 '12 at 12:18 PM