mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Fixed Collision2D using wrong entities for rigidbodies
This commit is contained in:
@@ -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.
|
||||
/// </summary>
|
||||
public Rigidbody2D Rigidbody => new() { _uuid = _entity };
|
||||
public Rigidbody2D Rigidbody => new() { _uuid = _rigidbody };
|
||||
|
||||
/// <summary>
|
||||
/// Gets the other rigidbody whose Collider takes part in the collision.
|
||||
/// </summary>
|
||||
public Rigidbody2D OtherRigidbody => new() { _uuid = _otherEntity };
|
||||
public Rigidbody2D OtherRigidbody => new() { _uuid = _otherRigidbody };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user