gpujs / gpu.js

GPU Accelerated JavaScript
https://gpu.rocks
MIT License
15.12k stars 655 forks source link

Possible Game Physics Engine #717

Open webciter opened 3 years ago

webciter commented 3 years ago

Has anybody thought of creating a game physics engine with this as all CPU based physics engines are slow for javascript.

formula1 commented 2 years ago

I've been looking into trying to implement something with verlet.js. But one issue with verlet is that there's a lot of mutations rather than mappings. Perhaps it's fine though

The particle mapping would need it's own code and each individual constraint would need it's own code