x


raycast animated character

I have an animated character in my scene (drag-n-dropped from a .fbx file). It has "idle" and "walk" animations. And they play/mix accordingly to some conditions.

When I do mouse-click, I want to check if I clicked onto the character. I guess I need to attach Physics->Mesh collider component onto my character and then use Physics.Raycast() routine.

But if I assign the skin mesh to be a collider, it remains static during the game. The character moves due to "idle" and "walk" animations, but collision mesh does not change. How do I do it "dynamic"?

more ▼

asked Apr 25 '12 at 02:49 PM

kolya8kc gravatar image

kolya8kc
1 2 2

(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:

x2482
x1525
x116

asked: Apr 25 '12 at 02:49 PM

Seen: 437 times

Last Updated: Apr 25 '12 at 02:49 PM