백지부터 시작하는 이세계 코딩 생활Raycast 콜라이더 (collider) 와의 충돌 감지를 확인할 수 있게 해주는 bool type 함수. Physics
클래스의 내장 함수이다. 따라서 Raycast를 사용하기 위해선 Physics.Raycasy(...) 로 시작한다. 사용하는 방법 :
Unity Raycast 정보, Physics 메타데이터에서. Raycast를 사용하는 형식은 위 사진과 같이 여러가지가 방법이 존재한다. RaycastHit Raycast를 통해, 충돌여부 정보를 담아서 반환해주는 구조체. Unity RaycastHit 메타데이터에서, RaycastHit 프로퍼티들LayerMask Layer의 사전적 의미는 "층" 이다. cf. Another Raycast DrawRay : Debug 클래스의 내장함수이다. (하위) 따라서 Debug.DrawRay( ... ) 처럼 사용할 수 있다.
RaycastAll : 단일 Object가 아닌 Ray와 접촉하는 모든 Collider들의 정보들을 반환한다.
Ref. About Raycast ssabi.tistory.com/29 [Unity3D] 레이캐스트(Raycast) 레이캐스트(Raycast) 레이캐스트는 광선을 쏘는 것을 의미합니다. 여기서는 레이를 쏜다 라고 표현하겠습니다. 레이캐스트를 사용하면 광선에 충돌되는 콜라이더(Collider)에 대한 거리, 위치 등의 ssabi.tistory.com chameleonstudio.tistory.com/63 유니티 레이캐스트 Raycast 충돌 / Ray의 모든 것 해당 티스토리 페이지는 필자가 유니티 C# 개발을 하면서 학습한 내용들을 기록하고 공유하는 페이지입니다 ! - 틀린 부분이 있거나, 수정된 부분이 있다면 댓글로 알려주세요 ! - 해당 내용을 공 chameleonstudio.tistory.com docs.unity3d.com/kr/530/ScriptReference/RaycastHit.html docs.unity3d.com/ScriptReference/Physics.Raycast.html Unity - 스크립팅 API: RaycastHit Success! Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable. 닫기 docs.unity3d.com Unity - Scripting API: Physics.Raycast Description Casts a ray, from point origin, in direction direction, of length maxDistance, against all colliders in the Scene. You may optionally provide a LayerMask, to filter out any Colliders you aren't interested in generating collisions with. Specifyi docs.unity3d.com blog.naver.com/PostView.nhn?blogId=happybaby56&logNo=221370502930 [유니티] RaycastHit 구조체 RaycastHit 은 Raycast 메서드 사용시에 반환받는 충돌정보를 담고 있다.다음은 RaycastHit 구조체... blog.naver.com Ref. About struct godnr149.tistory.com/77 |