andremichelle / clash

Physics engine based on dynamic intersection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clash

A physics engine that runs on dynamic intersection. It asks mathematically when a contact will occur rather than waiting for penetrations. In theory, no shapes will ever overlap or tunnel, even at high paces. In practice floating errors might accumulate and need special treatments.

Open alt screenshot

Build

Make sure to have sass installed and run in the console:

sass sass/main.sass:bin/main.css --watch

Make sure to have typescript installed and run in the console:

tsc -p ./typescript/tsconfig.json --watch

Todo

  • Introduce gravity and resistance
  • Find solution for resting contacts (prevent permanent jumping)
  • Introduce moving particles
  • Introduce fixed polygons, circles, and circle segments

About

Physics engine based on dynamic intersection

License:MIT License


Languages

Language:TypeScript 95.0%Language:Sass 3.7%Language:HTML 1.2%