/2d-phy-dojo

2D physics demo

Primary LanguageTypeScript

2D-Phy Dojo

2D physics from scratch with WebGL2, JS and C++

See live

export image

Dependencies

  • 2d-phy - lightweight 2D physics engine written in C++. Constructs and methods are exposed to JS via embind
  • hwoa-rang-gl2 - drawing utilities for WebGL2

Rendering

This demo instances all shapes aggressively by shape type:

Boxes

boxes only

Circles

circles only

Triangles

triangles only

Outline

outline only

Running locally

Clone the repo, npm install and npm run dev

References and readings