Description
Phy, published as the phy-engine package, is a physics library for three.js, the JavaScript 3D library. It bridges a three.js scene and physics engines, so you add, remove and change physics objects through one set of functions. The README lists Oimo, Ammo, Rapier, Jolt, Havok, PhysX and Box3d as the engines it can use, and it can run physics in a web worker or directly in the main thread. For each engine you can choose a compressed or a full version. Other features include math optimization, an assets pool, ES6 modules, extra geometry, character and animation helpers, and a compact engine build. The project includes an editor where you can view and edit the demo code, and you can drag a JavaScript file or an environment HDR onto the viewport. The README says the sources for PhysX and Havok are not public at the moment, and that the compiled versions can be used without restriction. The author asks users to get in touch with questions. Documentation is still in progress, and development is supported through GitHub Sponsors.…
Highlights
- Physics bridge for three.js
- Choice of Oimo, Ammo, Rapier, Jolt and more
- Runs in a web worker or directly
- Editor for demo code with drag and drop
- Compressed or full engine builds
Ratings & Reviews
No ratings yet
Be the first to rate Phy.
People also visit

threejs-gameplay-systems
Build and iterate playable Three.js game systems: starter scaffold
Phy FAQ
What is phy-engine?
It is a JavaScript library that connects three.js scenes to physics engines, so you handle physics objects through one interface.
Which physics engines are supported?
The README lists Oimo, Ammo, Rapier, Jolt, Havok, PhysX and Box3d.
Is all of it open source?
Not all. The README says the sources for PhysX and Havok are not public at the moment, and that the compiled versions can be used without restriction.
Is the documentation complete?
No. The README says the docs are still in progress, and the demo editor is the main way to see the code in use.
What are the best Phy alternatives?
Popular alternatives to Phy include Enari Engine, CryEngine and Physix-go. See all Phy alternatives







