Deleting all Spatials at a Point

I’m trying to delete all the spatials at a world coordinate that is stored in a Vector3f . Is there any way to do this without cycling through all of the rootNodes children and checking each one?

No, if you dont store each with a location somewhere else there is not.

Note theres the SceneGraphVisitor for such things (looping through the scene).

You can try to create a BoundingVolume (eg Sphere) and collect “collideWith” to find potential object to delete.
see https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:collision_and_intersection

@david.bernard.31 said: You can try to create a BoundingVolume (eg Sphere) and collect "collideWith" to find potential object to delete. see https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:collision_and_intersection

Which when you’re actually about absolute positions would be complete overkill. Instead of just looping through the spatials in the scene you additionally loop though all vertices as well with this.