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

Prevent Snapping from Custom Bone Rotation to Animation

Discussion in 'Animation' started by Agilapathy, Nov 24, 2018.

  1. Agilapathy

    Agilapathy

    Joined:
    Jun 29, 2018
    Posts:
    21
    Hi! I'm affecting a bone's rotation by using "bone.rotation = (New Rotation)" to give the appearance of the arm aiming towards the desired direction, and its working! But I can only use this custom rotation when the player is in its attack animation or else the arm would look weird, so i disable the changing of the bone rotation when the attack animation ends, and enable it when the animation starts. This works well except for the fact that it snaps to the rotation applied by the animation when I do this. How can I fix this? Thanks!

    Video:
     
  2. Agilapathy

    Agilapathy

    Joined:
    Jun 29, 2018
    Posts:
    21