Search Unity

Bug Animation Rigging issue - Multi-Aim Constraint teleports character object

Discussion in 'Animation Rigging' started by Techeart, Sep 17, 2020.

  1. Techeart

    Techeart

    Joined:
    Dec 29, 2019
    Posts:
    3
    I am trying to get my character to aim with the Animation Rigging package. I have a rig setup for my character model with an animator and now I need to use the Multi-Aim Constraint feature. So my problem is that the character teleports when I try to start a scene with the source object attached to the Multi-Aim Constraint component, even if the weight of that source object is zero. I will be very grateful for any help. P.S. sorry for my english.

    View attachment 700848

    View attachment 700851
     
  2. b4gn0

    b4gn0

    Joined:
    Jul 26, 2019
    Posts:
    119
    Can you add the Unity Editor and Animation Rigging package versions you are using?

    Also, your attachments links do not work.
     
  3. fishwind

    fishwind

    Joined:
    Jul 21, 2013
    Posts:
    11
    Hey! I got the same issue with animation rigging version 0.2.7, Unity version 2019.3.9f1. My character has Multi-Aim constraint and that cause my character to teleport around. I seeing my transform position value goes crazy.


    Any help?
     
    Last edited: Oct 3, 2020
  4. fishwind

    fishwind

    Joined:
    Jul 21, 2013
    Posts:
    11
    Update:

    I managed to reproduce the issue! With the following setups:
    1) Put your character (the one with Animator component) in an empty parent. (screenshot 1)
    2) Setup Aim constraint for your character. Just like how the sample scene setup.
    3) In character animator controller, add in a new animation that contains "character position keyframe". (screenshot 2)
    4) Play the game.

    Notice that:
    - The animation is playing "Idle animation" and not the new animation with position keyframe. (screenshot 3).
    - Issue ONLY occurs with ALL the setups mentioned above.
    - If you have a Rigidbody in the parent gameobject, the character will start teleporting around like crazy. Without rigidbody, it will still have an undesired movement.

    screenshot 1: https://imgur.com/6gCzBCq
    screenshot 2: https://imgur.com/fNg1rrt
    screenshot 3: https://imgur.com/DdD0shi

    Hope this could help with the bug fixing. Cheers!
     
  5. Le_Clair

    Le_Clair

    Joined:
    Sep 5, 2017
    Posts:
    4
    hey have you found the solution for this @f
     
  6. Nassim_Kraiem

    Nassim_Kraiem

    Joined:
    Jul 15, 2020
    Posts:
    2
    Enabling IK Pass in layer settings (in the animator) and apply root motion in Animator Component fixed this issue for me!;)