refactor: Removed Unnecessary Recalculate on Shape Behaviour

This commit is contained in:
Syntriax 2024-01-25 22:03:31 +03:00
parent 91ad13628c
commit 80c0f4cdd6
1 changed files with 0 additions and 2 deletions

View File

@ -2,7 +2,6 @@ using Microsoft.Xna.Framework;
using Apos.Shapes; using Apos.Shapes;
using Syntriax.Engine.Core;
using Syntriax.Engine.Physics2D.Primitives; using Syntriax.Engine.Physics2D.Primitives;
namespace Pong.Behaviours; namespace Pong.Behaviours;
@ -19,7 +18,6 @@ public class ShapeBehaviour : Syntriax.Engine.Physics2D.Collider2DShapeBehaviour
public void Draw(ShapeBatch shapeBatch) public void Draw(ShapeBatch shapeBatch)
{ {
Recalculate();
int count = ShapeWorld.Vertices.Count; int count = ShapeWorld.Vertices.Count;
shapeBatch.BorderCircle(Transform.Position.ToDisplayVector2(), 5f, Color.DarkRed); shapeBatch.BorderCircle(Transform.Position.ToDisplayVector2(), 5f, Color.DarkRed);