분류 전체보기(34)
-
Time.deltaTime을 통한 동일한 이동 유니티
더보기 "유니티 속도가 디바이스마다 달라요" "유니티 속도 동일하게 맞추는 법" "유니티 1초에 n만큼 움직이기" 만약, 움직이는 오브젝트의 속도가 PC, 디바이스의 사양의 따라 빨라지거나 느려지면 어떨까요? 모두에게 동일하지 않은 게임이 됩니다. Time.deltaTime은 그런 이슈를 해결해줄 수 있습니다. 코드를 통해 나쁜 예시를 들어보겠습니다. 나쁜 코드.cs 1 2 3 4 5 public float _speed = 10; private void Update() { transform.Translate(Vector2.up * _speed); } Colored by Color Scripter cs 좋은 컴퓨터는 1초에 60의 프레임으로 작동하고, 나쁜 컴퓨터는 1초에 20의 프레임으로 작동한다고 생각..
2019.10.23 -
방향 벡터 - 벡터의 정규화(normalized) 유니티
더보기 "유니티 방향 벡터" "유니티 노말라이즈드" 오브젝트 균일한 이동을 위하여 벡터의 정규화가 필요합니다. 그 이유는 모든 방향의 벡터 길이가 1 이어야 방향에 따른 이동 속도가 같아지기 때문이지요. magnitude(벡터의 길이를 변환)를 통해 예시를 보겠습니다. VectorDebuger.cs 1 2 3 4 5 6 7 8 9 10 11 public class VectorDebuger : MonoBehaviour { private void Start() { Vector2 upwardDir = new Vector2(0, 1); Vector2 diagonalDir = new Vector2(1, 1); Debug.Log(upwardDir.magnitude); Debug.Log(diagonalDir.magn..
2019.10.23 -
점령탱크(Block Tank) Privacy Policy
Privacy Policy SeojinGames built the 점령탱크(Block Tank) app as a Free app. This SERVICE is provided by SeojinGames at no cost and is intended for use as is. This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service. If you choose to use our Service, then you agree to the collection and use of in..
2019.10.19 -
Monster Palette Privacy Policy
Privacy Policy SeojinGames built the MonsterPalette app as a Free app. This SERVICE is provided by SeojinGames at no cost and is intended for use as is. This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service. If you choose to use our Service, then you agree to the collection and use of info..
2019.10.19