resolves #3
This commit is contained in:
@@ -32,6 +32,7 @@ export default {
|
||||
|
||||
unmounted(){
|
||||
window.removeEventListener('resize', this.resize);
|
||||
gameEngine.clearScene();
|
||||
gameEngine.stop();
|
||||
},
|
||||
|
||||
@@ -143,7 +144,7 @@ export default {
|
||||
env.scene.traverse(o=>{
|
||||
if (o.name == 'Sphere'){
|
||||
console.log('Fixing ground. TODO!!!')
|
||||
gameEngine.physics.add(o, 'fixed', true, undefined)
|
||||
gameEngine.physics.add(o, 'fixed', true, undefined, 'mesh', { root: env.scene})
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -223,6 +224,7 @@ export default {
|
||||
}
|
||||
|
||||
gameEngine.dashboard?.loading(1)
|
||||
gameEngine.physics.start();
|
||||
},
|
||||
|
||||
targetPointerDown(){
|
||||
|
||||
Reference in New Issue
Block a user