feat(physics): added area & inertia calculations for the shape and circles

This commit is contained in:
2026-04-04 18:49:27 +03:00
parent 6db427f39b
commit af2eed2200
6 changed files with 107 additions and 2 deletions

View File

@@ -20,6 +20,9 @@ public abstract class Collider2DBase : Behaviour2D, ICollider2D
public IRigidBody2D? RigidBody2D { get; protected set; } = null;
public bool IsTrigger { get; set; } = false;
public abstract float Area { get; }
public abstract float GeometricInertia { get; }
public void Recalculate()
{
if (!NeedsRecalculation)