'2014/02/05'에 해당되는 글 2건

  1. 2014.02.05 유니티 2D 메카닉 애니메이션 관련
  2. 2014.02.05 레이어 끼리의 충돌 무시하기

유니티 2D 메카닉 애니메이션 관련

|

apply Root Motion -> 애니메이션의 루트 기준점의 움직임에 따라서 게임 오브젝트가 같이 이동합니다.


 


Trackback 0 And Comment 0

레이어 끼리의 충돌 무시하기

|

Physics2D.IgnoreLayerCollision(8,9);


Start함수에 이걸 적어주면 해당되는 번호의 레이어끼리는 충돌을 무시한다.

레이어 번호는 Tags & Layers 에서 볼수 있다.


아래는 API







Physics2D.IgnoreLayerCollision

static void IgnoreLayerCollision(int layer1, int layer2, bool ignore = true);
Parameters

layer1ID of the first layer.
layer2ID of the second layer.
ignoreShould collisions between these layers be ignored?
Description

Choose whether to detect or ignore collisions between a specified pair of layers.


Trackback 0 And Comment 0
prev | 1 | next