This is just a small tweak that I thought might be useful to others.
I often extend Node for more complex objects that I have in my scene, and when I do a collision check I often want to trace it back from the Geometry and get the instance of the Node subclass. For example, if I have a class Building which extends Node, a window pane geometry might trace back as Geometry -> Node -> Node -> Building or something like that.
So I wrote two small methods that either get or check for an ancestor of the class given. I’d love to see these integrated into Spatial, but the provided methods are static methods that can be placed anywhere.
EDIT: Removed the code, see Normen’s reply below.