Webaverse uses a WebAssembly Build of PhysX, a C++ open-source realtime physics engine middleware SDK developed by Nvidia. It is compiled with EMSDK.
Get Webaverse PhysX Build (APP-WASM)
- Fork and clone it to your prefered directory.
Get Emscripten SDK
- Clone it and then run these commands inside the emsdk directory:
./emsdk install latest./emsdk activate latest
-
Within app-wasm point to the emsdk directory using this command:
source /home/user/emsdk/emsdk_env.shchange it to your own path. -
Now inside app-wasm run this to compile:
./compile.sh -
Congrats! If it compiled without errors the finished build should be in
app-wasm/bin
- Copy the
geometry.jsandgeometry.wasmfiles fromapp-wasm/bin - Paste them into
app/public/binin the Webaverse app - Done! Now reload the Webaverse app and try out your own PhysX configuration!