This commit is contained in:
Chandler Cox
2023-09-30 21:34:40 -05:00
parent cc681de30e
commit 8edd50c293

View File

@@ -369,11 +369,11 @@ namespace FlaxEngine
{
var transform = Transform;
var q = Quaternion.RotationAxis(axis, angle * Mathf.DegreesToRadians);
var dif = (transform.Translation - point) * q;
if (Vector3.NearEqual(point, transform.Translation))
transform.Orientation *= q;
else
{
var dif = (transform.Translation - point) * q;
transform.Translation = point + dif;
if (orientActor)
transform.Orientation *= q;