AA(19) - 벽 뚫기 방지
void Move() { if(!isBorder) transform.position += moveVec * speed * (wDown ? 0.1f : 1f) * Time.deltaTime; void FreezeRotation() { rigid.angularVelocity = Vector3.zero; } void StopToWall() { Debug.DrawRay(transform.position, transform.forward * 5, Color.green); isBorder = Physics.Raycast(transform.position, transform.forward, 5, LayerMask.GetMask("Wall")); } private void FixedUpdate() { FreezeRot..