how to make bullet movement indipendent from player camera?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By damianus

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

:bust_in_silhouette: Reply From: Legorel

Try following this tutorial

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

damianus | 2021-08-23 10:34

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

Legorel | 2021-08-23 19:39