본문 바로가기
UNITY

문제 - Unity2D Tilemap Collider 2D 적용 불가

by GREEN나무 2023. 9. 1.
728x90

 

 

Tilemap Collider 2D

      Used By Composite 체크O

Rigidbody 2D

      Body Type : Kinematic

      Simulated 체크O

 

나머지 컴포넌트 추가할 때 그대로

 

 

시도1 :  Include Layers

 

https://docs.unity3d.com/Manual/class-TilemapCollider2D.html

 

Unity - Manual: Tilemap Collider 2D

Tilemap Collider 2D The Tilemap ColliderAn invisible shape that is used to handle physical collisions for an object. A collider doesn’t need to be exactly the same shape as the object’s mesh - a rough approximation is often more efficient and indisting

docs.unity3d.com

 

Include Layers에 Player가 없음... Everything 체크하고 시도해보자

 

안됨. 플레이어를 못막음

 

시도2 - 플레이어 설정 문제도 아님.

둘다 Rigidbody 2D들어가있고 플레이어의 Body Type도 Dinamic이고

집(타일맵)의 Rigidbody를 Static으로 바꿔도 안됨

https://discussions.unity.com/t/tilemap-collider-2d-not-working/241309/2

 

Tilemap collider 2D not working

Does it not generate colliders at all? If that’s the case what I’ve found is that changing the tiles’ Collider Type to Grid fixes it, that’ll make it so it generates the collider based on the shape of the grid and not the sprite, but at least it wo

discussions.unity.com

 

 

안되는 이유가 뭔데????

'UNITY' 카테고리의 다른 글

PlayerMovment  (0) 2023.08.18