Transform a vector to Euler angle

abginner 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 1

Euler angle is used to rotate, how can I transform a vector of 3(x,y,z) to Euler angle, then the object could rotate?

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

A euler angle already is a vector 3. The X component represents rotation on the X axis, and so on for the rest of the components.

If you need to convert a euler angle represented in a Vector3 to a quaternion, you can simply use the Quaternion: Euler unit.