FXGL
FXGL copied to clipboard
Implement 3D collision detection using bounding box
Now that we have 3D transformations, the next step is to consider simple collision detection in 3D using bounding (3D) boxes.
This needs to be done before integrating FXyz, i.e. #901
The API should match what already exists for 2D, ideally through BoundingBoxComponent
- [ ] BoundingShape has box2d Shape converter which doesn't work for 3D shapes, so API needs to be tweaked
- [ ] BoundingBoxComponent::checkCollision for 3D needs to be refactored to be GC-free.
- [ ] BoundingBoxComponent::checkCollision currently only works for local origin 0,0,0 and HitBox has no Z aspect
- [ ] EntityBuilder::viewWithBBox should account for this