building-blocks icon indicating copy to clipboard operation
building-blocks copied to clipboard

Will building-blocks support collisions between grids?

Open entropylost opened this issue 4 years ago • 1 comments

This project seems very nice; I'm probably going to be using it as a voxel engine for my game (https://github.com/iMplode-nZ/Autofactory), but I need to run collisions between two different voxel grids, in which the grids can be split up. Will building-blocks support this or will I have to implement it myself? (Side note: It seems that this is most optimal in an octree representation of voxels)

entropylost avatar Oct 27 '20 17:10 entropylost

BB does have an OctreeDBVT structure here if you enable the "building_blocks_partition/ncollide" feature.

Right now it only supports ray-casting and a more general visitor pattern.

I think it could eventually support collisions between two OctreeDBVTs. Maybe implementing some traits from ncollide3d could also help.

bonsairobo avatar Oct 27 '20 17:10 bonsairobo