Search Unity

Unity IK LookAt Bone Selection

Discussion in 'Scripting' started by Deleted User, Nov 27, 2015.

  1. Deleted User

    Deleted User

    Guest

    I've set up an IK system using the Animator component to initialise SetLookAt, it positions the head to "look at" the player within a certain "interaction distance".

    I also have a script that calculates if the Player is near an NPC so you can initialise dialogue, I was hoping to use the IK system to position the body / specific bones not just the head so you could initialise dialogue and not have them talking to a table.

    Not found much info on how to select a bone (outside hands and feet from AvatarIKgoal) and then face it towards the character.

    Sorry if this is simple, any ideas?