SOFTLEASH / DOCUMENTATION
Collision System
Describe shapes, detect contact, and decide how objects should respond.
A working outline. The snippets below use plain LÖVE and Lua, not the final SoftLEASH API.
Overview
A collision system brings shapes and contact queries together. Detection answers whether objects touch; gameplay code decides what that contact means.
Use this page for supported shapes, collision layers, queries, and response behavior. The example shows a simple rectangle test using ordinary Lua, not the engine’s final collision interface.
LÖVE example
A small, plain LÖVE example for the draft. Replace this snippet with the documented SoftLEASH API and a focused use case later.
What to document next
Supported shapes and collision layers.
Contact callbacks and overlap queries.
Detection versus physical response.
