Topic was automatically imported from the old Question2Answer platform.
Asked By
Martik
I have a shooter node in my main scene which instances bullets. I want the bullets to go in a certain direction but their movement is distorted by shooter’s movement. Here’s the code for bullets:
I wish I could find the link to the tutorial in the godot documentation that deals with this exact situation, but essentially you want to spawn the bullets not as a child of the player, but as a child of the World. When you spawn a bullet you feed it three things, the position to spawn at, the speed, and the angle it’s fired at. This way it has no inherent ties to the players motion.