I’m trying to get my gun model (pistol) to always follow the camera’s position.
This line of code sets the parent of the gun mesh as the camera.
In the inspector, the gun successfully becomes a child of the camera
However, you can walk anywhere and the pistol doesn’t move. Using setParent() also has the same result for me.
If i replace the gun with a simple box, it works just fine…
What is it that I’m doing wrong, that the child node wont follow the camera location, but a normal box will?
Thank you in advance