ImpulseEngine Port
by freds72
















































ImpulseEngine Port
As a temporary side project, I hastily ported Randy Gaul ImpulseEngine to pico-8LUA.
Usage
Requires a mouse
left mouse button: create a random shape at mouse cursor or drag shapes
right mouse button: showhide world or body options
button c: showhide debug information
Dev Log
The physic engine is a direct port from Randy Gaul's work, detailled in a series of articles:
How to Create a Custom 2D Physics Engine
My contribution is mostly on a clean 2d vector and 2x2 matrix object oriented library.
It makes vectormatrix math very concise to work (and easy to port from C++ code!):