feat(physics): added area & inertia calculations for the shape and circles
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user