~alect/jmpulse

physics in janet
add instructions to first example
increase beta on penetration constraint to make things more "solid"
fix typos in examples

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~alect/jmpulse
read/write
git@git.sr.ht:~alect/jmpulse

You can also use your local clone with git send-email.

A zero dependency, pure Janet, constraint based, unoptimized, physics engine

#Enhancements TODO list

  • [ ] Broad & Narrow phases using AABB collision
  • [ ] Contact Caching
  • [ ] figure out how to integrate the forces.janet functions into the world
  • [ ] More constraint types
    • [ ] weld constraint

#Examples

Each file in the examples/ folder require jaylib, and can be independently ran

janet examples/01-hello-jmpulse.janet

#Sources of knowledge

Primarly this is an implementation of the engine described in Pikuma's 2d game physics engine course.

The vectors implement common operators on tuples as described in this github discussion

box2d-lite was also used as a resource.