lo-th / Oimo.js

Lightweight 3d physics engine for javascript
http://lo-th.github.io/Oimo.js
MIT License
3.05k stars 300 forks source link

World properties #62

Closed gregmax17 closed 6 years ago

gregmax17 commented 6 years ago

What do the different broadphase's mean, what does brute, sweep & prune, and volume tree do?

What does random do, what does adding a random number in the simulation mean?

lo-th commented 6 years ago

Hi, is the algorithm used during collision detection

_brute is the most simple every object collid with other

_sweep & prune is more comlex and the best for many situation https://en.wikipedia.org/wiki/Sweep_and_prune

_volume tree is the most accurate but most complexe https://en.wikipedia.org/wiki/Bounding_volume_hierarchy

random change order of island array so every simulation look different like real world