From 957237df274f251d79b050544c4247a2283217ef Mon Sep 17 00:00:00 2001 From: Diego Marcos Segura Date: Thu, 16 Nov 2023 12:29:00 -0800 Subject: [PATCH] Call hideCollider on the correct component object (fix #5385) --- src/systems/obb-collider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systems/obb-collider.js b/src/systems/obb-collider.js index 5cf663543d4..d25b0915c38 100644 --- a/src/systems/obb-collider.js +++ b/src/systems/obb-collider.js @@ -23,7 +23,7 @@ registerSystem('obb-collider', { removeCollider: function (colliderEl) { var colliderEls = this.colliderEls; var elIndex = colliderEls.indexOf(colliderEl); - colliderEl.hideCollider(); + colliderEl.components['obb-collider'].hideCollider(); if (elIndex > -1) { colliderEls.splice(elIndex, 1); } if (colliderEls.length === 0) { this.tick = undefined; } },