상세검색
최근 검색어 전체 삭제
다국어입력
즐겨찾기0
156629.jpg
KCI등재 학술저널

유니티 플랫폼 게임을 위한 2D 캐릭터 컨트롤러

2D Character Controller for a Unity Platform Game

  • 111

유니티는 3D 게임을 위한 캐릭터 컨트롤러를 제공하지만, 아직 2D 캐릭터 컨트롤러는 제공하지 않는다. 이것은 개발자가 2D 물리적 환경에서 캐릭터의 움직임을 완전하게 제어할 수 있는 유니티용 2D 캐릭터 컨트롤러를 개발하는 계기가 되었다. 이렇게 개발된 컨트롤러는 플래이어 컨트롤을 크게 제한하는 유니티의 내장된 물리 기능을 대체할 수 있다. 본 논문에서는 구현한 컨트롤러는 쉽게 구현할 수 있으면서 2D 캐릭터를 제어하기에 매우 유용한 방법을 제공함으로써 게임 속 캐릭터의 이동과 게임 환경에 존재하는 물체와의 상호작용을 정확하게 제어할 수 있다. 이 컨트롤러는 플랫폼 게임용으로 설계되었지만 물리적 환경을 돌아다니며 상호 작용하는 캐릭터가 포함된 다른 2D 게임에도 쉽게 사용할 수 있다. 그리고 간단한 구조로 구현이 되어 초보자도 쉽게 파악하고 탐색할 수 있다. 노련한 게임 개발자는 이 기본 컨트롤러를 기반으로 기능을 확장해서 응용할 수 있고, 물리 구성 요소를 구현하는 2D 게임 디자인을 위한 완전한 솔루션을 제공할 수 있다.

Unity provides character controllers for 3D games, but so far, 2D character controllers are not. This is where the developer develops a 2D character controller for Unity that allows full control of the character s movements in a 2D physical environment. Controllers developed in this way can replace Unity s built-in physics, which greatly limits player control. The controller implemented in this paper can be easily implemented while controlling 2D characters. It provides a very useful way to precisely control the movement of characters in the game and their interaction with what is in the game environment. These controllers can easily be used for other 2D games that contain interacting characters while moving around the physical environment you are designing for platform games. And it is implemented in a simple structure. Experienced game developers can extend the functionality based on this basic controller and apply it, providing a complete solution for 2D game design that implements physics components.

1. 서론

2. 메인 클래스와 컨트롤러

3. 레이 캐스팅

4. 특정 상황에 대한 물리 구현

5. 결론

로딩중