physijs-webpack
v0.1.4
Published
PhysiJS port for bundlers with out-of-the-box support for Webpack and Browserify
Downloads
33
Maintainers
Readme
PhysiJS port for bundlers
A PhysiJS port for bundlers with out-of-the-box support for Webpack and Browserify
Installation
npm install -S physijs-webpack
Usage
webpack
var Physijs = require('physijs-webpack');
and install worker-loader
with:
npm install -D worker-loader
browserify
var Physijs = require('physijs-webpack/browserify');
and install webworkify
with:
npm install -D webworkify
other bundlers
See the webpack.js and browserify.js files for examples as to how one might configure for a different bundler.
Bundler Performance Optimizations
Feeling like your builds are too slow? Looking to speed them up? Check out our optimization docs!
Credits
Thanks to @silviopaganini for creating the initial browserify version! And of course @chandlerprall for creating Physijs itself!
Misc
Check out WhitestormJS and its physics integration for a more modern experience with ThreeJS and physics. It's modern enough to even have React and Angular integrations!