seanspicer / nexscenegraph

A New EXperimental Scene Graph in .NET Core
Apache License 2.0
31 stars 9 forks source link

Bounding Boxes #40

Open PicassoCT opened 2 months ago

PicassoCT commented 2 months ago

Hi, not a real Issue,

im currently looking at the scenegraph, and i do not understand the bounding boxes concept. Bounding boxes, are the property of Geometry , thus should inherit Transform and the sceneGraph below should be traversed to compare them in Intersect? Did i miss something. Sorry, for wasting your time if the answer is obvious. Similar to : http://jkh.me/files/tutorials/Separating%20Axis%20Theorem%20for%20Oriented%20Bounding%20Boxes.pdf

PicassoCT commented 2 months ago

Okay, we life and learn- so i further dug into it - and there is a Intersection Visitor in Utils, and that little guy, is not using global to compute intersection, although the final intersection call does again, but by then, both objects should be in the same matrixe, making it valid. The Traversal Mode Types of:

            TraverseNone,
            TraverseParents,
            TraverseAllChildren,
            TraverseActiveChildren

Do not have a "seek" mode, where you can hold two IntersectionCandidates - which then are brought into the same Nodepath via graph traversal.