fix(world): ammo.js fix
This commit is contained in:
parent
1e28b4ae79
commit
164d1f2ece
@ -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;
|
BIN
document.odt
BIN
document.odt
Binary file not shown.
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user