Method FromToRotation
FromToRotation(Vector3, Vector3)
Creates a rotation which rotates from fromDirection to toDirection.
Declaration
public static Quaternion FromToRotation(Vector3 fromDirection, Vector3 toDirection)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | fromDirection | |
Vector3 | toDirection |
Returns
Type | Description |
---|---|
Quaternion |