From 80c0f4cdd604fdca4443a04fac6e54a57e74daf5 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Thu, 25 Jan 2024 22:03:31 +0300 Subject: [PATCH] refactor: Removed Unnecessary Recalculate on Shape Behaviour --- Game/Behaviours/ShapeBehaviour.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Game/Behaviours/ShapeBehaviour.cs b/Game/Behaviours/ShapeBehaviour.cs index e4c089e..c27ad33 100644 --- a/Game/Behaviours/ShapeBehaviour.cs +++ b/Game/Behaviours/ShapeBehaviour.cs @@ -2,7 +2,6 @@ using Microsoft.Xna.Framework; using Apos.Shapes; -using Syntriax.Engine.Core; using Syntriax.Engine.Physics2D.Primitives; namespace Pong.Behaviours; @@ -19,7 +18,6 @@ public class ShapeBehaviour : Syntriax.Engine.Physics2D.Collider2DShapeBehaviour public void Draw(ShapeBatch shapeBatch) { - Recalculate(); int count = ShapeWorld.Vertices.Count; shapeBatch.BorderCircle(Transform.Position.ToDisplayVector2(), 5f, Color.DarkRed);