if (movement != Vector3.zero) { LayerMask myMask = 1 << 8; if (!Physics.Raycast(this.transform.position + Vector3.up, transform.forward, 1f)) { _playerAnimator.SetBool("Walk", true); } else { _playerAnimator.SetBool("Walk", false); } _playerRigidbody.MovePosition(transform.position + movement); this.transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation(movement.normalized), 4 * Time.deltaTime); } else { _playerAnimator.SetBool("Walk", false); } } I want this Raycast to not respond to triggers. For this, I created a separate layer (N9). Here, everything seems to be normal and the syntax is not broken, but nevertheless the object that uses this script does not respond at all. Can you help please.
