nodejs-physijs

the physijs physics engine, running server-side on nodejs

Usage no npm install needed!

<script type="module">
  import nodejsPhysijs from 'https://cdn.skypack.dev/nodejs-physijs';
</script>

README

THREE.js + physijs on node.js

Run the physijs physics engine server-side with node.js

Quick Start

To use physijs on the server side

const NodePhysijs = require('nodejs-physijs');
const THREE = NodePhysijs.THREE;
const Ammo = NodePhysijs.Ammo;
const Physijs = NodePhysijs.Physijs(THREE, Ammo);

The libraries in "browser/libs" (in github) are the original ones from three/physijs (except the log). But the libraries in "nodejs/libs" are modified to work with node.js.