Physics collision Listener collision detection issues

i ran this line of code
if (event.getNodeA().getName().equals("bullet))||
// same for node B
here i had set the name of the spatial as bullet and still its not working

plz help in on which object should i use i.e spatial or collision shape or Node ???
thanks in advance

Maybe work through the wiki examples to get familiar with the concept of spatial node and so on? At least this did work for me. There are as well some collision example. Its hard to help you on the snipped you posted. Too few context at least for me.

Your code is not working, but you didn’t post the exact code that isn’t working…

From what you posted, I would say this


Is the problem, you need another "