Skip to content

TON-Metaspace/physics-wasm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhysX WASM for Webaverse client

Introduction

Webaverse uses a WebAssembly Build of PhysX, a C++ open-source realtime physics engine middleware SDK developed by Nvidia. It is compiled with EMSDK.

Setup Requirements

Get Webaverse PhysX Build (APP-WASM)

  • Fork and clone it to your prefered directory.
  • Clone it and then run these commands inside the emsdk directory: ./emsdk install latest ./emsdk activate latest

Compilation

  • Within app-wasm point to the emsdk directory using this command: source /home/user/emsdk/emsdk_env.sh change 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

Use it in Webaverse

  • Copy the geometry.js and geometry.wasm files from app-wasm/bin
  • Paste them into app/public/bin in the Webaverse app
  • Done! Now reload the Webaverse app and try out your own PhysX configuration!

PhysX Docs

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 88.0%
  • C 10.1%
  • CMake 1.4%
  • PowerShell 0.1%
  • Python 0.1%
  • Batchfile 0.1%
  • Other 0.2%