Latest MousePicking Activity
I added in mouse picking. The bounding boxes need not be axis aligned, although I'm too lazy to rename them from AABBs to just BBs. I ended up breaking the game board into 8x8 cells, each with a bounding box, so triangle-ray intersection is speedy-ish.
The relevant code is:
void get_collision_locati…
@shaarigan Yup that's essentially what I'm trying to implement, albeit in 3 dimensional space. From what I understand an R-Tree is just a specific kind of BVH that uses axis-aligned rectangles as the bounding volumes, with BVHs being a generalized superset of data structures. I'm trying to im…
Advertisement
Advertisement
Advertisement