diff --git a/apps/playground-2d/src/main.ts b/apps/playground-2d/src/main.ts index 3f63f190..637b3d97 100644 --- a/apps/playground-2d/src/main.ts +++ b/apps/playground-2d/src/main.ts @@ -8,7 +8,8 @@ import MySquare from './classes/MySquare' await scene.init() await scene.initPhysics() // Debug the scene - fDebug(scene) + if (import.meta.env.DEV) + fDebug(scene) // Create the ground const ground = new FSquare(scene, { diff --git a/apps/playground-3d/src/main.ts b/apps/playground-3d/src/main.ts index be8f0bbc..499c0f19 100644 --- a/apps/playground-3d/src/main.ts +++ b/apps/playground-3d/src/main.ts @@ -11,7 +11,8 @@ import MyCustomCube from './classes/MyCustomCube' scene.init() await scene.initPhysics() // Debug the scene - fDebug(scene) + if (import.meta.env.DEV) + fDebug(scene) // Create a ground const ground = new FCube(scene, {