Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Multi-Aim constraint not looking at the target

Discussion in 'Animation Rigging' started by Marksvini, May 24, 2021.

  1. Marksvini

    Marksvini

    Joined:
    May 24, 2021
    Posts:
    1
    Using
    Animation Rigging 1.0.3
    Unity 2021.1.7f1

    i've set the constraint and the source in a WeaponPose object that control the gun, to rotate it towards the aim point, but the weapon stand still in the same position while the camera rotates, it's not even rotating with the character, glitching inside the character model.
    Does anyone can give me some light on this?
    upload_2021-5-24_15-56-45.png
    AimLookAt is a child of main camera with (0,0,20) position.
    upload_2021-5-24_15-55-41.png
     
  2. unity_FA448D926F85F8700025

    unity_FA448D926F85F8700025

    Joined:
    Apr 17, 2021
    Posts:
    2
    Did you solve it?
     
  3. Joyless20

    Joyless20

    Joined:
    Jan 3, 2021
    Posts:
    2
    For anyone looking at this in the future my fix was I had to have the "LookAt" object not be a child of the camera since the camera was a child of my Player. Instead I put the "LookAt" object in the hierarchy and reference the camera position and rotation.

    The reason is while the LookAt child object will move in reference to the camera if you notice in the editor the world position does not change. I have no idea why that is and maybe my fix is wrong, I am still fairly new to Unity.