Making a held object visible at all times while preserving head bobbing (FPS Controller)
I'm using the FPS controller in standard assets for movement, so this is my hierarchy:
Player (parent) > Main Camera (child)
I have an object which I want to simulate is being held by the player, so I moved it and made it a child of Player, so now the object moves with the player wherever it goes and is affected by the head bobbing script on the camera. The issue is, that it doesn't follow me when I look up or down, so I then made the object a child of the Main camera instead. Now, the object moves wherever the Player goes and also follows the camera whenever it rotates in the Y axis. But is no longer affected by head bobbing.
As a child of Player: Doesn't follow the camera when looking up or down. Has head bobbing.
As a child of Main camera: Doesn't follow the camera when looking up or down. Ignores head bobbing.
I've tried tinkering with rotations, positions in scripts and I've not accomplished anything. Does anyone have any clue on how to do this?
Thanks in advance.