Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question SetLookAtPosition has an offset that I can't figure out.

Discussion in 'Animation' started by fwalker, Aug 29, 2023.

  1. fwalker

    fwalker

    Joined:
    Feb 5, 2013
    Posts:
    255
    I am using _animator.SetLookAtPosition(lookAtPosition); to aim the head of my character at a particular target. For some reason, the head only rotated property in one direction but it has an offset rotation on the other direction as I rotate around a target.

    I know the lookAtPosition I am passing is correct as I am drawing a ray to it.

    Can someone suggest what I should be looking at to try to fix this issue? Something in the rig if so what? Everything looks correct on the avatar including the muscle settings.