Collision Detection

Is there a way to detect a collision between a geometry and a Node? Sorry if that is a stupid question but didn’t find anything on it.


With the bounding volume of the node, yeah.

1 Like

But i have a x number of colliding able nodes and one geom, and i want to know if that geom is colliding with any of the nodes.

I am trying to do a spell, that will freeze any object in the “selectable” node that is in a certain radius.

Like, my geometry checks if he has a collision, if he has one he get the user Data of it to get to the class of it and then do something.

So how can i make the geometry “listen” for collision with a node>?

Ok nvm, i just found out how stupid i am xD a node is a parent of a geometry.

aniway i have this weird error :


at com.jme3.collision.bih.BIHTree.collideWith(

at com.jme3.scene.Mesh.collideWith(

at com.jme3.scene.Geometry.collideWith(

at Objects.Spell.IceSpells.FFSpell_02.<init>(

at Objects.Spells.checkCreate(

at Objects.Spells.update(

at Objects.Players.Player2D.update(

at Objects.Objects.objectsUpdate(

at Rooms.MainLand.update(

at Engine.Main.simpleUpdate(


at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(

at com.jme3.system.lwjgl.LwjglDisplay.runLoop(




that say this code does it :

[java]// Calculate detection results

CollisionResults results = new CollisionResults();

geom.collideWith(room.getRmNode(), results); // THIS PART IS THE ERROR

System.out.println("Number of Collisions between" +

geom.getName()+ " and " + room.getRmNode().getName() + ": " + results.size());[/java]

Any suggestion on fixing it?