Replace xform.WorldPosition with xformSystem method for Setting/Getting (#30029)
* GET WORLD POSITON, ROTATION * Missing parentheses * ui system depndency * the issue * Unused * Let the function do the transform --------- Co-authored-by: plykiya <plykiya@protonmail.com>
This commit is contained in:
@@ -39,7 +39,7 @@ public sealed class StressTestMovementSystem : EntitySystem
|
||||
var x = MathF.Sin(stressTest.Progress * MathHelper.TwoPi);
|
||||
var y = MathF.Cos(stressTest.Progress * MathHelper.TwoPi);
|
||||
|
||||
_transform.SetWorldPosition(transform, stressTest.Origin + new Vector2(x, y) * 5);
|
||||
_transform.SetWorldPosition((uid, transform), stressTest.Origin + new Vector2(x, y) * 5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user