[Solved] Excluding node from a Octree RaycastSingle

Is there a way to exclude a specific node from octree RaycastSingle?

With the physicsWorld RaycastSingle you could set the node’s body on a temporary collision layer to exclude it.

The same applies to Octree. Use SetViewMask() to manage your layers, and set the viewMask accordingly in RayOctreeQuery