Advertisement

Latest Uglify.js Activity

8Observer8
December 21, 2020 02:22 PM
Set Up Ammo.js with Browserify (Ammo.js is a port of Bullet Physics Engine to JS)

I found a solution how to use Ammo.js with Browserify:

npm install kripken/ammo.js

Install Browserify and UglifyJS globally:

npm i browserify uglify-js -g

Make this project structure:

public/index.html
public/js
src/client
src/server

Copy this example to src/client/main.js

const Ammo = require("ammo.js");

l…
5,989 views
Advertisement
Advertisement
Advertisement
Advertisement