Skip to content

Jaymun723/vysics-engine

Repository files navigation

Vysics Engine

⚠️ This project is still in early development !

A 2D impulse based, rigid body physics engine for the web. The goal of this project is not to create a state of the art physics engine. The goal is to create an understandable code that people can read & used to better understand classic physics.

🚀 Try it online

Based on:

Implemented & Todos

✅: Implemented

🔧: Still needs some work

🔜: Not implemented but planned

Physics parts

  • Shapes:
    • Circle ✅
    • Rectangle ✅
    • Convex Polygons ✅
    • Any type of Polygons (decomposition in convex polygons) 🔜
  • Forces:
    • Gravity ✅
    • Drag ✅
    • Linear / Angular dumping 🔜
    • Constraints 🔜
    • Joints 🔜
  • Integrations:
    • Verlet integration ✅
  • Collisions:

More engine related parts

  • Debug drawings (using Vancas) 🔜
  • Tests (using jest) 🔜 (maybe never 😞)
  • Integration with Vancas 🔜
  • Optimisation (not a priority) 🔜

Examples

The playground and more importantly its code are a good example on how to use the vysics engine.

More examples will come after 🔜...

Documentation

W.I.P.

For the moment you may want to generate docs using TypeDoc.

Releases

No releases published

Packages

No packages published

Languages