Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Aiming With the new unity Input system

Discussion in 'Input System' started by unpinguindeter, May 15, 2020.

  1. unpinguindeter

    unpinguindeter

    Joined:
    Feb 20, 2020
    Posts:
    1
    I don't know how to rotate a caracter with the new unity input system

    my game is a top down 3D shooter

    void OnTurn(InputValue value )
    {
    I_turn = value.Get<Vector2>();
    transform.rotation = Quaternion.LookRotation(I_turn);
    }
    sorry i am a starter .