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