Simple physics for casual games, it's 2D. It only supports sphere + sphere and sphere + AABB box collisions.
- Download Physics.js
- Put it into your project
- Attach it to Root
- Done!
You can define your object type with simple tags, supported tags:
Dynamic
Ghost
Objects that doesn't have any of these tags above will be static if they have collision component.
You can listen events like these:
this.entity.on('Trigger', object, dt)
this.entity.on('Leave')
this.entity.on('Collision')
Trigger is on triggered object, collision is on dynamic object, it gives which object we collided.
- Simple games including mobile
- 2kb super simple engine, loads instantly
- 2D movement, or simple topdown perspective, isometric movement type of games
https://www.youtube.com/watch?v=0oDCl_D34X8&ab_channel=CemDemir
https://playcanv.as/b/2c3f7dd2
https://playcanvas.com/project/1127019/overview/simple-physics-box--sphere