0 votes

as title says, i'm tryng to make the instanced bullet indipendent from player camera?
both are children of player
thank you!

in Engine by (26 points)

1 Answer

0 votes
by (278 points)

i don't know if the instanced node is indipendent in the way you suggest,
What do you think about it?

From what I understand, when you shoot, the bullet "follows" the camera movement. This is because you are adding the bullet instance as a child of the camera. So when the camera moves or rotates, the bullet will do the same. Instead, bullet instances should be children of the current scene (which will not move/rotate). This make the bullet position independent of the camera movement or any other player movement.

So yes, the tutorial I linked should solve the issue

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.