멋쟁이 사자처럼 부트캠프 유니티 게임 개발 4기 30일차 회고
💻 Unity2D RaycastisGrounded = Physics2D.Raycast(groundCheck.position, Vector2.down, groundCheckDistance, whatIsGround);void OnDrawGizmos(){ Gizmos.DrawLine(groundCheck.position, new Vector3(groundCheck.position.x, groundCheck.position.y - groundCheckDistance));}groundCheck 위치에서 플레이어의 아래쪽(Vector2.down)으로 groundCheckDistance만큼 레이캐스트를 쏴서 땅이 있는지 확인isWallDetected = Physics2D.Raycast(wallCheck.pos..
Unity/멋쟁이사자처럼
2025. 4. 4. 16:41