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

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:
    4,193