chore: bumped dotnet version to 10

This commit is contained in:
2026-01-23 12:16:07 +03:00
parent 097f1897c2
commit 90e59802c6
32 changed files with 210 additions and 257 deletions

View File

@@ -4,25 +4,19 @@ namespace Engine.Physics2D;
public class Collider2DShape : Collider2DBase, IShapeCollider2D
{
public Shape2D ShapeWorld { get => _shapeWorld; protected set => _shapeWorld = value; }
public Shape2D ShapeWorld { get; protected set; } = Shape2D.Square;
public Shape2D ShapeLocal
{
get => _shapeLocal;
get;
set
{
_shapeLocal = value;
field = value;
NeedsRecalculation = true;
}
}
} = Shape2D.Square;
private Shape2D _shapeWorld = Shape2D.Square;
private Shape2D _shapeLocal = Shape2D.Square;
public override void CalculateCollider() => ShapeLocal.Transform(Transform, _shapeWorld);
public override void CalculateCollider() => ShapeLocal.Transform(Transform, ShapeWorld);
public Collider2DShape() { }
public Collider2DShape(Shape2D shape)
{
ShapeLocal = shape;
}
public Collider2DShape(Shape2D shape) { ShapeLocal = shape; }
}