The Camera is moving apart from the body like the freelook mode in games lake arma or rust. But I want to prevent the player from looking in to himself by locking the camera to a certan degree so he can only look forwar and slightly the the left and right. Another idea which would be even better but ptopably harder to make would be to let the player look everywhere but when he looks to the left and right that after a certan degree whthe body would move to that direction too.
Thanks for everyone who reads this
I know how to read out the yaw rotation and by that see when the camera goes to far but I dont know how to STOP it from going further.