x


Constrain object to bone/joint in Unity

I'm currenty making an animation for a character swinging a sword in Maya. Currently the sword is just constrained to the hand bone/joint. I plan to export the character and sword as separate meshes to Unity. How should I export the model/rig from Maya, so that I can constrain the sword to the Hand bone/joint in Unity? Is this possible, and what is the standard practice for things like this? Thanks!

more ▼

asked Mar 09 '11 at 09:40 PM

user-10108 (google) gravatar image

user-10108 (google)
1 1 1 3

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

1 answer: sort voted first

You can add the sword and character separately to the scene and then in the inspector move the sword to be a child of your hand bone. So the hierarchy would look something like: Shoulder>UperArm>LowerArm>Hand>(Sword Object)

Also if you would like to have different weapons you could instead put an empty gameobject as child of the hand bone and use that as a reference to where to spawn your weapons/items.

more ▼

answered Mar 09 '11 at 10:42 PM

Kona gravatar image

Kona
253 9 10 21

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

x3893
x406
x154
x147
x14

asked: Mar 09 '11 at 09:40 PM

Seen: 1643 times

Last Updated: Mar 09 '11 at 09:40 PM