eonarheim / iterative-constraint-solver

A small TypeScript example of an iterative constraint solver based on Erin Catto's GDC 2014 talk https://www.youtube.com/watch?v=SHinxAhv1ZE

Home Page:https://eonarheim.github.io/iterative-constraint-solver/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2D Rigid Body Iterative Constraint Solver

This is a small TypeScript example of a 2D Rigid Body Iterative Constraint Solver based on Erin's Catto's GDC 2014 talk using HTML5 Canvas and dat.gui UI.

preview of constraint solver

Running Locally

  • Using NodeJS

  • On the command line

  • Press 'b' on the keyboard to spawn more balls

  • Press 's' to go to single frame step mode

  • Press 't' to go to normal running mode

About

A small TypeScript example of an iterative constraint solver based on Erin Catto's GDC 2014 talk https://www.youtube.com/watch?v=SHinxAhv1ZE

https://eonarheim.github.io/iterative-constraint-solver/index.html


Languages

Language:TypeScript 98.1%Language:JavaScript 1.0%Language:HTML 0.9%