I am trying to make a robotic simulator using panda3d. For this I would like to know when two objects (the end effector and the payload) are correctly aligned. At present I set both a collision solids and search for a collision between them, showing that they are in the same place. However, I am now looking to improve the accuracy of my robot and therefore want to detect when they aligned correctly.
I am unsure how to detect such behaviour, any help would be greatly appriciated.