fix(world): ammo.js fix

This commit is contained in:
Mahdi Dibaiee 2018-12-29 15:01:22 +03:30
parent 1e28b4ae79
commit 164d1f2ece
3 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
,mahdi,lab,29.12.2018 14:56,file:///home/mahdi/.config/libreoffice/4;
,mahdi,lab,29.12.2018 14:59,file:///home/mahdi/.config/libreoffice/4;

Binary file not shown.

View File

@ -16,7 +16,7 @@ const app = new WHS.App([
new PHYSICS.WorldModule({
gravity: new THREE.Vector3(0, -100, 0),
ammo: 'http://localhost:8080/lib/ammo.js',
ammo: `${location.protocol}//${location.hostname}${location.pathname}lib/ammo.js`,
}),
new WHS.RenderingModule({ bgColor: 0x162129 }), // Apply THREE.WebGLRenderer