diff --git a/fission/src/mirabuf/MirabufInstance.ts b/fission/src/mirabuf/MirabufInstance.ts index bbb56d1cf..7e1a9eb50 100644 --- a/fission/src/mirabuf/MirabufInstance.ts +++ b/fission/src/mirabuf/MirabufInstance.ts @@ -128,11 +128,6 @@ class MirabufInstance { * Parses all mirabuf appearances into ThreeJS and Jolt materials. */ private LoadMaterials(materialStyle: MaterialStyle) { - Object.entries(this._mirabufParser.assembly.data!.materials!.physicalMaterials!).forEach(([name, material]) => { - const [static_f, dynamic_f] = [material.staticFriction, material.dynamicFriction] - console.log(`${name} - static: ${static_f} dynamic: ${dynamic_f}`) - //this._materials.set() - }) Object.entries(this._mirabufParser.assembly.data!.materials!.appearances!).forEach( ([appearanceId, appearance]) => { const { A, B, G, R } = appearance.albedo ?? {} diff --git a/fission/src/systems/physics/PhysicsSystem.ts b/fission/src/systems/physics/PhysicsSystem.ts index dc1f29944..f323503e4 100644 --- a/fission/src/systems/physics/PhysicsSystem.ts +++ b/fission/src/systems/physics/PhysicsSystem.ts @@ -165,7 +165,7 @@ class PhysicsSystem extends WorldSystem { * The pause works off of a request counter. */ public ReleasePause() { - if (this._pauseCounter > 0) this._pauseCounter-- + if (this._pauseCounter) this._pauseCounter-- } /**