Problem with Physics collision JM3


In my game, I have a simple physic collision between a CharacterControl and a RigidBodyControl, I implemented a listener that detect when the collision happen, in the listener I have a simple command that dettach the RigidBodyControl of my rootNode, but the problem is that the listener detect the collision many times(4 or 5) and the after this, the RigidBodyControl is dettached of my rootNode.

This make my objects stay in collision during about 1 or 2 seconds to the action happen, making a bad effect.

PS: Sorry my english, because I am brazilian