From d7f0b76485e0f1cbeb695224fc9e25ef6de8b902 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Sat, 2 Nov 2024 09:38:01 +0300 Subject: [PATCH] fix: Circle Transformation Miscalculation --- Engine.Physics2D/Primitives/Circle.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine.Physics2D/Primitives/Circle.cs b/Engine.Physics2D/Primitives/Circle.cs index c760edb..5e0ae2a 100644 --- a/Engine.Physics2D/Primitives/Circle.cs +++ b/Engine.Physics2D/Primitives/Circle.cs @@ -69,7 +69,7 @@ public readonly struct Circle(Vector2D center, float radius) /// Transforms the by the specified . /// public static Circle TransformCircle(ITransform transform, Circle circle) - => new(transform.TransformVector2D(circle.Center), circle.Radius * transform.Scale.Magnitude); + => new(transform.TransformVector2D(circle.Center), circle.Radius * (transform.Scale.Magnitude / Vector2D.One.Magnitude)); /// /// Checks if two s are approximately equal.