fix(Extensions): Added SetPositionAndRotation

This commit is contained in:
MrGadget 2024-08-10 13:51:17 -04:00
parent dfd69f79dd
commit a89d4ccc5d

View File

@ -108,6 +108,12 @@ public static void GetPositionAndRotation(this Transform transform, out Vector3
position = transform.position; position = transform.position;
rotation = transform.rotation; rotation = transform.rotation;
} }
public static void SetPositionAndRotation(this Transform transform, Vector3 position, Quaternion rotation)
{
transform.position = position;
transform.rotation = rotation;
}
#endif #endif
// IPEndPoint address only to pretty string. // IPEndPoint address only to pretty string.