Why is my gun's translation weird?

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

I am coding a basic first person shooter and I have a bug
whenever I run the debugger, the gun’s translation is really weird. Whenever I move it down to where the hip might be, when i run the game, it goes on the top, where the head would be. I have the gun as a child of Head and camera. Both are where the head would be (which is common sense). I tried making it a child of Head only but the problem persists. If i make it a child of my kinematicbody node then it stays where it is but this means that I cannot move the gun and the camera at the same time.

how do i fix this?

thanks in advance to whoever helps me

Maybe you could show us more of the project? Perhaps how the nodes are setup, or the code used for the “Head” and camera?

Ertain | 2022-10-01 19:25