Quaternion.FromRotation

Quaternion.FromRotation method

Creates a quaternion that rotate from original to destination direction

public static Quaternion FromRotation(Vector3 orig, Vector3 dest)
ParameterTypeDescription
origVector3Original direction
destVector3Destination direction

Return Value

Created quaternion

See Also