Q.
여러 캐릭터들을 바닥에 정렬하고자 합니다.
캐릭터의 아래쪽에 Pivot을 설정하면 해결될 것 같은데 가능할까요?
I want to align several characters on the floor.
I think setting the Pivot at the bottom of the characters would solve this.
Is that possible?
A.
AnyPortrait에 Pivot이 있긴 하지만, 그것은 메시의 중심을 의미하므로 이 경우에는 해당하지 않습니다.
메시 그룹의 기본 위치를 수정하면 캐릭터들의 기본 위치들을 일관성있게 설정할 수 있을 것입니다.
( https://rainyrizzle.github.io/kr/AdvancedManual/AD_DefPosMeshGroup.html )
또다른 방법은, 기본 위치를 유니티 씬에서 지정하는 것입니다.
AnyPortrait 캐릭터 GameObject의 부모로서 GameObject를 생성합니다.
그리고 자식이 된 AnyPortrait 캐릭터의 Local 위치를 조절하여 부모 GameObject의 위치가 캐릭터의 “Pivot”되도록 설정합니다.
예를 들면, 부모 GameObject의 위치가 캐릭터의 “발”에 위치하도록 상대적으로 캐릭터를 위쪽으로 조금 이동시킵니다.
그리고 부모 GameObject를 땅에 배치시키면, AnyPortrait 캐릭터가 땅에 서있는 형상이 될 것입니다.
이후엔 이 부모 GameObject를 게임 캐릭터로서 간주하고 제어하면 됩니다.
AnyPortrait does have a Pivot, but that means the center of the mesh, so it doesn’t apply in this case.
If you modify the default position of the mesh group, you can set the default positions of the characters to be consistent.
Another way is to specify the default position in the Unity scene.
Create a GameObject as the parent of the AnyPortrait character GameObject.
Then adjust the Local position of the child AnyPortrait character so that the position of the parent GameObject is the “Pivot” of the character.
For example, move the character upwards a little relative to the parent GameObject so that the position of the parent GameObject is at the “feet” of the character.
Then, if you place the parent GameObject on the ground, the AnyPortrait character will appear to be standing on the ground.
After that, you can consider this parent GameObject as your game character and control it.
-
This topic was modified 1 week, 1 day ago by
Archive Account.
-
This topic was modified 1 week ago by
Archive Account.