From 0f55324632de2615c812aed4e9778e5e9ff791c8 Mon Sep 17 00:00:00 2001 From: Robert Kowalski Date: Thu, 1 Feb 2024 13:10:30 -0500 Subject: [PATCH] pointerConstraint can't getWorldPoint with no camera. Fix #6684 --- src/physics/matter-js/PointerConstraint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physics/matter-js/PointerConstraint.js b/src/physics/matter-js/PointerConstraint.js index ce945be58..d99dc3e71 100644 --- a/src/physics/matter-js/PointerConstraint.js +++ b/src/physics/matter-js/PointerConstraint.js @@ -305,7 +305,7 @@ var PointerConstraint = new Class({ } else if (pointer.isDown) { - if (!body && !this.getBody(pointer)) + if (!this.camera || (!body && !this.getBody(pointer))) { return; }