... | ... | @@ -2,10 +2,17 @@ |
|
|
|
|
|
## Collisions & physics
|
|
|
|
|
|
The focus for collisions detection should on developing a CPU strategy, because the GPU is already used at 100% (a better GPU may be useful at some point).
|
|
|
|
|
|
See these three.js examples :
|
|
|
* https://threejs.org/examples/#webgl_physics_convex_break
|
|
|
* https://threejs.org/examples/#webgl_physics_rope
|
|
|
* https://threejs.org/examples/#webgl_physics_terrain
|
|
|
* https://stemkoski.github.io/Three.js/Collision-Detection.html
|
|
|
|
|
|
Screen space collision detection using stencil buffer :
|
|
|
* https://cg.informatik.uni-freiburg.de/course_notes/sim_09_imageSpace.pdf
|
|
|
* In three.js, see the classes `WebGLRenderer`, `WebGLState` (the functions concerning the stencil buffer in `WebGLState` seem to be undocomutended atm)
|
|
|
|
|
|
## Improvements
|
|
|
|
... | ... | |