scenerygraphics / scenery

Flexible VR Visualisation for Volumetric and Geometric Data on the Java VM, powered by Kotlin and Vulkan.
https://scenery.graphics
GNU Lesser General Public License v3.0
130 stars 32 forks source link

Finer-grained intersection testing for Nodes #611

Closed skalarproduktraum closed 1 year ago

skalarproduktraum commented 1 year ago

This PR extends the intersects() method to perform actual oriented bounding box tests, not just bounding sphere tests, as currently performed.

https://github.com/scenerygraphics/scenery/assets/586495/4fc7c125-7110-4e69-99c9-d5cabb7bc79f

https://github.com/scenerygraphics/scenery/assets/586495/5ee394f9-854d-47fb-8d50-53057b7c85bb