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

@@ -30,6 +30,16 @@ public interface ICollider2D : IBehaviour
/// </summary>
IRigidBody2D? RigidBody2D { get; }
/// <summary>
/// The area of the <see cref="ICollider2D"/>.
/// </summary>
float Area { get; }
/// <summary>
/// The geometric inertia of the <see cref="ICollider2D"/>.
/// </summary>
float GeometricInertia { get; }
/// <summary>
/// The value indicating whether the <see cref="ICollider2D"/> is a trigger.
/// </summary>