Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Rotate Vector3

Discussion in 'Scripting' started by Dekata, Nov 30, 2018.

  1. Dekata

    Dekata

    Joined:
    May 20, 2016
    Posts:
    47
    Guys,
    I want rotate vector3 A to vector3 B and clamp it like vector A can not rotate more than 30 degree (if angle of A and B less than 30 so A = B
    thanks for your help
     
  2. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    3,995