Physics Overview
Dill Pixel offers three physics plugins:
- Snap Physics: A lightweight, AABB and circle-based collision system inspired by Maddy Thorson’s TowerFall physics
- Crunch Physics: A robust, grid-based physics system optimized for platformers and endless runners with advanced entity management
- Matter Physics: A full-featured physics engine (using Matter.js) for complex physics simulations
Plugin Comparison
Feature | Snap Physics | Crunch Physics | Matter Physics |
---|---|---|---|
Best Use Cases | • Platformers & endless runners • AABB & circle collisions • Precise, deterministic movement | • Complex platformers • Grid-based collision detection • Entity groups & advanced sensors | • Physics-based puzzles • Complex body interactions • Realistic gravity & force simulations |
Performance | Minimal overhead, deterministic | Optimized for large numbers of entities, grid-based | More resource-intensive, feature-rich |
Complexity | Simple, straightforward API | Rich feature set, moderate learning curve | Advanced features, steeper learning curve |
For detailed setup and usage instructions, see: