One actor moves toward another based on proximity?
I am trying to develop a learning game based on physics (electric principles, etc) and im trying to figure out how to make certain tasks interactive. I am having trouble putting into words what i am trying to do which is making a forum search difficult so forgive me.
I would like to make a hanging ball that as a negatively charged rod is put closer to it the ball starts to move toward the rod, thus showing it has a positive charge. I understand tying one set of coordinates to the other but if i want one end to remain attached? and how do i do this based on the proximity of the rod?
Kind of like this. Any thoughts or where to start looking.
Thanks in advance