Method ApplyCameraRotation
ApplyCameraRotation(Quaternion, Vector2, Vector3)
Apply rotations, first about world up, then about (travelling) local right. rot.y is rotation about worldUp, and rot.x is second rotation, about local right.
Declaration
public static Quaternion ApplyCameraRotation(this Quaternion orient, Vector2 rot, Vector3 worldUp)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | orient | |
Vector2 | rot | Vector2.y is rotation about worldUp, and Vector2.x is second rotation, about local right. |
Vector3 | worldUp | Which way is up |
Returns
Type | Description |
---|---|
Quaternion | Result rotation after the input is applied to the input quaternion |