https://github.com/repalash/three-pbd
Position Based Dynamics for Three.js [WIP]
https://github.com/repalash/three-pbd
Last synced: 10 months ago
JSON representation
Position Based Dynamics for Three.js [WIP]
- Host: GitHub
- URL: https://github.com/repalash/three-pbd
- Owner: repalash
- License: other
- Created: 2023-02-04T20:25:42.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-04-04T12:51:39.000Z (about 1 year ago)
- Last Synced: 2025-07-09T15:14:48.434Z (11 months ago)
- Language: TypeScript
- Size: 93.8 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# three-pbd
Very small CPU based implementation of Position Based Dynamics for Three.js. Only for very simple simulations.
For more complex simulations, use cannon.js or ammo.js.
### Install
```
npm install three-pbd
```
### Examples
Hosted here: https://repalash.com/three-pbd/
Check out the examples folder for source code.
### API Documentation
Hosted here: https://repalash.com/three-pbd/docs/
## Development
To run
```
npm install
npm run build
npm run serve
```
Then navigate to http://localhost:8000
### Modified from:
* Unity3D https://github.com/Scrawk/Position-Based-Dynamics
* C++ https://github.com/InteractiveComputerGraphics/PositionBasedDynamics
### About PBD
* https://matthias-research.github.io/pages/tenMinutePhysics/09-xpbd.pdf