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