FXGL icon indicating copy to clipboard operation
FXGL copied to clipboard

Implement 3D collision detection using bounding box

Open AlmasB opened this issue 5 years ago • 1 comments

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

AlmasB avatar Dec 24 '20 09:12 AlmasB

  • [ ] 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

AlmasB avatar Dec 25 '20 09:12 AlmasB