chore!: renamed Shape2D.Box to Square for consistency

This commit is contained in:
2025-04-05 17:25:50 +03:00
parent 40f483974d
commit d1129c95df
2 changed files with 3 additions and 3 deletions

View File

@@ -6,9 +6,9 @@ namespace Syntriax.Engine.Physics2D;
public class Collider2DShapeBehaviour : Collider2DBehaviourBase, IShapeCollider2D
{
public Shape2D ShapeWorld { get => _shapeWorld; protected set => _shapeWorld = value; }
public Shape2D ShapeLocal { get; set; } = Shape2D.Box;
public Shape2D ShapeLocal { get; set; } = Shape2D.Square;
private Shape2D _shapeWorld = Shape2D.Box.CreateCopy();
private Shape2D _shapeWorld = Shape2D.Square.CreateCopy();
public override void CalculateCollider() => Transform.TransformShape(ShapeLocal, ref _shapeWorld);