This commit is contained in:
@@ -200,8 +200,10 @@ class GameEngine extends THREE.EventDispatcher{
|
||||
|
||||
await this.initPhysics();
|
||||
|
||||
this.stats = new Stats();
|
||||
document.body.appendChild(this.stats.dom);
|
||||
if (opts.stats){
|
||||
this.stats = new Stats();
|
||||
document.body.appendChild(this.stats.dom);
|
||||
}
|
||||
|
||||
if (opts.ar) {
|
||||
renderer.xr.enabled = true;
|
||||
|
||||
Reference in New Issue
Block a user