mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Give this a description because I forgot what it does
This commit is contained in:
parent
aaa87cc858
commit
965136505f
@ -211,6 +211,12 @@ namespace NewHorizons.Utility
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Transform rotation from Local Space to World Space
|
||||
/// </summary>
|
||||
/// <param name="transform"></param>
|
||||
/// <param name="localRotation"></param>
|
||||
/// <returns></returns>
|
||||
public static Quaternion TransformRotation(this Transform transform, Quaternion localRotation)
|
||||
{
|
||||
return transform.rotation * localRotation;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user