 | QuaternionXCustomLookRotation Method |
Build a
Quaternion where aimVector is pointed forward and upVector is pointed
upwards.
Namespace: CandlelightAssembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntaxpublic static Quaternion CustomLookRotation(
Vector3 forward,
Vector3 upwards,
Vector3 aimVector,
Vector3 upVector
)
Parameters
- forward
- Type: Vector3
The direction the specified aimVector should point. - upwards
- Type: Vector3
The direction the specified upVector should try to approximate. - aimVector
- Type: Vector3
The axis on the custom frame that should face forward. - upVector
- Type: Vector3
The axis on the custom frame that should try to face upwards.
Return Value
Type:
QuaternionA
Quaternion corresponding to the custom look rotation frame.
See Also