I have just finished my movement system for my first-person shooter game, and I have been encountering a bug that I don’t know how to fix. The GameObject (Player) is moving away from where the camera is facing, and I can counteract this with opposite movement. However, I would love it if it didn’t move at all unless the user presses WASD. Could someone please help?
Hi make sure you attach your camera as a child object to the character controller and make sure your camera does not have a rigidbody or any colliders that could interact with your character’s colliders.
Also welcome to the Cloud Code forum. This is a place to discuss anything to do with your Unity Cloud Code. For Unity Engine related topics try here, or physics here.