PosAndRotExtensionsTransformPosAndRot Method |
Namespace: KSPDev.Extensions
public static PosAndRot TransformPosAndRot( this Transform node, PosAndRot posAndRot )
public static void ToWorld() { var parent = new GameObject(); parent.transform.position = Vector3.one; parent.transform.rotation = Quaternion.LookRotation(Vector3.up); var pr = new PosAndRot(); Debug.LogFormat("Local: {0}", pr); Debug.LogFormat("World: {0}", parent.transform.TransformPosAndRot(pr)); }