fix: collider2Ds not updating collider after new assignment

This commit is contained in:
2025-04-08 23:18:33 +03:00
parent 2535a1d6ec
commit 26a80452bc
3 changed files with 25 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ public abstract class Collider2DBehaviourBase : Behaviour2D, ICollider2D
public event ICollider2D.CollisionResolvedEventHandler? OnCollisionResolved = null;
public event ICollider2D.TriggeredEventHandler? OnTriggered = null;
protected bool NeedsRecalculation { get; private set; } = true;
protected bool NeedsRecalculation { get; set; } = true;
protected IRigidBody2D? _rigidBody2D = null;
public IRigidBody2D? RigidBody2D => _rigidBody2D;