GameDevTecnico / cubos

A still very barebones game engine focused on voxels and data-oriented programming
https://gamedevtecnico.github.io/cubos/
MIT License
83 stars 23 forks source link

994 detect collisions for voxel vs voxel and voxel vs box #1282

Open joaomanita opened 2 months ago

joaomanita commented 2 months ago

Description

Added a voxel collision shape which decomposes a voxel grid into a set of boxes to be used in collision detection. Added a greedy meshing like algorithm to do the decomposing into boxes. Added systems to detect collisions between voxel collision shapes and box shapes, and voxel-voxel.

Checklist