인프런
Rookiss님의 <C#과 유니티로 만드는 MMORPG게임 개발 시리즈 Part3:유니티엔진> 내용을 보고 공부목적으로 작성한 글 입니다.
Collision을 알아보기 전에 먼저 땅을 깔자
땅을 가는 방법에는 두가지
우선 Plane으로 깔고 색 변경
색 변경은 Material을 추가하는 것으로 가능
() - Material = 재질. 빛이 반사 될 때 어떤식으로 반사 될 것인지 정의해주는 파일
Create - Material - Albedo ~ 원하는 색으로 변경

Control of an object's position through physics simulation.
Adding a Rigidbody component to an object will put its motion under the control of Unity's physics engine. Even without adding any code, a Rigidbody object will be pulled downward by gravity and will react to collisions with incoming objects if the right Collider component is also present.

Capsule Collider 가 붙어 있고,Mesh Collider 가 붙어 있다 💡 상대방도 충돌범위를 갖고 있어야함. 그래야 그 범위에 부딪혔는지 아닌지 판별할 수 있다.