https://github.com/maxdevos49/particle
A simple 3D particle library
https://github.com/maxdevos49/particle
Last synced: 5 months ago
JSON representation
A simple 3D particle library
- Host: GitHub
- URL: https://github.com/maxdevos49/particle
- Owner: maxdevos49
- Created: 2023-04-15T18:29:41.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T02:00:15.000Z (about 3 years ago)
- Last Synced: 2025-07-24T13:56:55.680Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Particle 3D library
A simple light weight particle library. All utilities are immutable and return a new particle object literal.
# Example
```ts
const stationaryParticle = Particle3D.create();
const gravityForce = Vector3.create(0,-1);
const movedParticle = Particle3D.applyForce(stationaryParticle, gravityForce);
// movedParticle === {position: {x:0, y:-1, z:0}, velocity: {x:0, y:-0, z:0}}
```