private void FixedUpdate() { if (isLocalPlayer && disablePlayerMovement == false) { playerMovementVector = GetUserRawInputNormalized() * Time.deltaTime * characterClass.GetCurrentMovementSpeed(); playerRigidbody.MovePosition(this.transform.position + playerMovementVector); playerRigidbody.MoveRotation(GetPlayerRotationByMousePoint()); } }