Home - Pipe-Runner-Lab/2d-physics-engine GitHub Wiki
Rust for WASM
- https://rust-lang.github.io/rustup/installation/index.html (Install rust) | needed for wasm pack to compile rust code
- https://rustwasm.github.io/wasm-pack/book/introduction.html (Install wasm-pack CLI) | This is used to convert rust to wasm packages that can be consumed directly by the web application
- Finally to make wasm-pack work seamlessly with Webpack install @wasm-tool/wasm-pack-plugin (This will make wasm-pack work with Webpack as a plugin)
^ wasm pack can be installed using cargo and npm other than the default installation method provided. It is recommended to use cargo.
Physics engine fundamentals
- https://www.codeproject.com/Articles/1029858/Making-a-D-Physics-Engine-The-Math
- https://www.toptal.com/game/video-game-physics-part-i-an-introduction-to-rigid-body-dynamics
- https://www.myphysicslab.com/develop/docs/Engine2D.html
- https://cs.gmu.edu/~eclab/projects/mason/extensions/physics2d/PhysicsEngineWriteup.pdf
- http://www.cs.uu.nl/docs/vakken/mgp/2014-2015/Lecture%207%20-%20Collision%20Resolution.pdf
- https://en.wikipedia.org/wiki/Elastic_collision
Optimising JS
- http://allthingsjavascript.com/blog/index.php/2016/11/16/caching-the-length-property-in-a-for-loop/ (For loop optimization)