From 2399196a3a22bc3b8b7537cb9b333036e8bc7ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Thu, 25 Jan 2024 23:36:29 +0100 Subject: [PATCH] Fixed Collision2D using wrong entities for rigidbodies --- ScriptCore/Physics/Collision2D.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }; }