Fix Actor.RotateAround to rotate the actors orientation.

This commit is contained in:
Chandler Cox
2023-09-30 17:21:48 -05:00
parent fd3f10864b
commit 1366c2850f

View File

@@ -370,7 +370,7 @@ namespace FlaxEngine
var q = Quaternion.RotationAxis(axis, angle * Mathf.DegreesToRadians);
var dif = (transform.Translation - point) * q;
transform.Translation = point + dif;
transform.Orientation = q;
transform.Orientation *= q;
Transform = transform;
}