pointerConstraint can't getWorldPoint with no camera. Fix #6684

This commit is contained in:
Robert Kowalski 2024-02-01 13:10:30 -05:00
parent deba2d42b5
commit 0f55324632

View file

@ -305,7 +305,7 @@ var PointerConstraint = new Class({
} }
else if (pointer.isDown) else if (pointer.isDown)
{ {
if (!body && !this.getBody(pointer)) if (!this.camera || (!body && !this.getBody(pointer)))
{ {
return; return;
} }