Problem with 3D rotations in instanced node

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

I have the following node structure: a player, a launcher as child of player, and the launcher has another child node used as the coordinates to put the missile when it is instanced and added as parent scene child. So far, I manage to properly use the position of the guide node, but I cant properly rotate the instanced projectile. Once the player moves and rotates to some direction, the missile points to other. I have tried assigning guide node rotation to missile rotation, the global_transform.basis, the rotation_degrees, the player’s same things, and I always get the wrong missile rotation and also the movement direction is wrong. Any suggestion to solve this?

:bust_in_silhouette: Reply From: rossunger

The bullet should not be a child of the launcher, otherwise it will affected by the launchers rotation and position and scale. You can just attach it to get_tree().get_root() if you need