Skip to content

Commit

Permalink
fix: hide colliders (#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala authored Dec 22, 2023
1 parent 52edf18 commit 1571f2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ function processColliders($: BABYLON.AssetContainer) {
for (let i = 0; i < $.meshes.length; i++) {
const mesh = $.meshes[i]

if (mesh.name.toLowerCase().endsWith('collider')) {
if (mesh.name.toLowerCase().includes('collider')) {
mesh.checkCollisions = true
mesh.visibility = 0
mesh.isPickable = false
Expand Down

0 comments on commit 1571f2e

Please sign in to comment.