Search Unity

procedurally combine a main character with weapons during animations

Discussion in 'Animation' started by newbie2014, Feb 23, 2017.

  1. newbie2014

    newbie2014

    Joined:
    Dec 1, 2015
    Posts:
    7
    Hello, I need to find a way to programmatically place weapons for main character in right position of his body.


    For example if I am using UMA to procedurally create humans and then use some pre-existing models of guns (10-20) of them. Now I need to find a way to place them correctly in the hand positions of the human model. I will use mixamo or IK to apply animations on the human character.

    But is there any way to programmatically place the objects in the right positions? Probably by marking some joints?

    I am looking at some efficient approach to begin with on this.
     
  2. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    700
    Yes, you will probably want to expose the hand bone transforms in your characters import settings if you have optimize transforms turned on. Then you can just parent your weapon to that hand bone and it will be attached and move with it.