Closed
Description
We need to find a way to detect octree collisions with the camera ray in order to find selected cubes.
This will be important for the octree-editor. I'm sure glm will help us a lot here.
Maybe there is some library or an established algorithm to help us with this?
We need the following features:
- Which cube is in collision?
- Which of the 6 faces of the cube is in collision?
- Which of the 4 edges (on every one of the 6 faces) of the cube is in collision?
The octree collision code could be a separate class like OctreeCollision
or something?
Maybe we should include it into the interface directly though.
Related: #190
Activity