I'm having trouble trying to get a projectile thrown by a tower to hit the player quickly.
See the image below:
The projectile hits the ground very close to where the player was.
If the player did not move so much, the projectile would certainly hit him, but even by slowing the player down and increasing the speed of the shot, the projectile often does not hit the player.
What happens almost always is the projectile orbiting the player.
If the player stands still when the tower starts firing, the projectile hits him, the problem happens when the player moves, the projectile does not follow the player correctly.
I have already tried to modify the speed of the player and the projectile, but I have not obtained efficient improvements in the result. I tried to modify the gravity (of the projectile and its mesh), friction. All to no avail.
With this code I was able to stop the projectile from crossing the floor:
But the projectile still orbits the player:
If the player does not stop moving, the projectile orbits it indefinitely.
Below is how the components went after I turned off the physics at all.