How do I get my projectiles to follow my cursor until they pass it. I'm looking for an effect like homing missiles, but when they reach the corsors position, I want them to continue on their current trajectory.
My current situation is that they reach my cursor and then fly around it like an angry swarm of bees. They follow it everywhere rather than going past. Here is my code for my tracker, don't think its the problem though. I copied it out of a tutorial, so I wouldn't know if it has issues.
from bge import logic
def main():
scene = logic.getCurrentScene()
cont = logic.getCurrentController()
mouse_over = cont.sensors["Mouse_over"]
if mouse_over.positive:
tracker = scene.objects["Tracker"]
tracker.worldPosition = mouse_over.hitPosition
Also download my file here: