Hertzole / gold-player

A first person player controller for Unity.
MIT License
160 stars 16 forks source link

Head bob does not work well together with mouse movement and crouching #7

Closed Hertzole closed 4 years ago

Hertzole commented 6 years ago

The head bob feature does not work as expected when it's targeting the same transform as the camera module. Example: PlayerCamera and PlayerBob both target "Camera Head". This stops the player from being able to look down and up and the player can no longer crouch. Possible fix: Stop both PlayerBob and PlayerCamera from setting values and make them adapt around the current state of the transform... somehow. For now, a workaround is to set PlayerCamera to target "Camera Head" transform and the PlayerBob to target "Player Camera" transform child.