diff --git a/ScriptCore/Physics/Collision2D.cs b/ScriptCore/Physics/Collision2D.cs index 031fcb6..fa1bcee 100644 --- a/ScriptCore/Physics/Collision2D.cs +++ b/ScriptCore/Physics/Collision2D.cs @@ -29,10 +29,10 @@ public struct Collision2D /// Gets the rigidbody whose Collider takes part in the collision. /// This Rigidbody is either a component of the entity whose script instance received the event or a parent of it. /// - public Rigidbody2D Rigidbody => new() { _uuid = _entity }; + public Rigidbody2D Rigidbody => new() { _uuid = _rigidbody }; /// /// Gets the other rigidbody whose Collider takes part in the collision. /// - public Rigidbody2D OtherRigidbody => new() { _uuid = _otherEntity }; + public Rigidbody2D OtherRigidbody => new() { _uuid = _otherRigidbody }; }