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