So, I just recently learned Godot and GDScript and I'm trying to make a simple bullet Hell/Heaven type of game to get more accustomed to the engine and the way it works. However, I ran into a problem recently. I intended for the player to fire a bullet towards the mouse cursor that would keep traveling straight until offscreen, where it would be despawned. The issue here is that the bullet stops exactly at the mouse position and doesn't travel any further and I don't really understand why. I am also using an Area2D for the projectile since, while I got the inteded behaviour with a Rigidbody2D node, I don't want the enemies to be pushed back by it.[upl-image-preview
This is the projectile code:
And this is the result obtained:
Anyway, thank you for the help and have a nice day!