Search Unity

Resolved how can i make an animation that plays relative to a float

Discussion in 'Animation' started by MigleDing, Jul 10, 2021.

  1. MigleDing

    MigleDing

    Joined:
    Jul 6, 2021
    Posts:
    9
    im new to unity and still learning but i couldn't really find anything to this subject. Im making a gun for VR and i want the trigger of the gun to rotate with the trigger of my vr controller.
    I have a code that outputs the trigger input of my vr controller as a float between 1 and 0. I also made a one second long animation for the trigger (just 2 keyframes, 60 frames).
    If anyone could help me on this id be more than happy!
     
  2. MigleDing

    MigleDing

    Joined:
    Jul 6, 2021
    Posts:
    9