refactor: Removed Unnecessary Recalculate on Shape Behaviour
This commit is contained in:
parent
91ad13628c
commit
80c0f4cdd6
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue