korge
korge copied to clipboard
Proper collisions implementation
trafficstars
After doing some experimenting, would be nice to make a standard integration supporting raytracing for all the entities marked as such sorted with a BVH implementation, and to include tilemap raytracing too.
Example: https://github.com/korlibs/korge-starter-kit-dungeon
So evolving that + https://store.korge.org/module/korma-tile-raycasting/ we can provide something that can:
- define colliders that are AABB sorted by using BVH for entities and tilemaps
- Those colliders supports at least raycasting (distance to collision, and normal vector) + AABB testing
With the normal vector and collision position we can implement sliding techniques.
Then it can be used for several kind of games including platformers, cenital views, etc.
Once this functionality is right, we can then publish the starter kit add a tutorial and explore start a new game JAM with all the new functionality and bugs fixed.