UNREAL C++ · INPUT

Enhanced Input 이동 파이프라인

Input Mapping Context가 입력을 Action 값으로 바꾸고, C++ 바인딩 함수가 카메라 기준 방향으로 변환해 Character 이동 입력으로 넘깁니다.

입력 변환

movement
mapping context키와 축을 Input Action에 연결
BindActionStarted, Triggered 이벤트를 함수에 바인딩
InputValueMoveAction에서 FVector2D 추출
AddMovementInputForward/Right 방향으로 이동 적용
mapping contextBindActionInputValueAddMovementInput

Context 등록

점검
컨텍스트BeginPlay 또는 Possessed 시점에 Mapping Context를 추가합니다.
회전 기준Controller yaw만 사용해 바닥 이동 방향을 계산합니다.
값 범위축 입력은 -1~1 값으로 들어온다고 보고 처리합니다.
분리점프, 이동, 시점 회전은 Action을 나눠 바인딩합니다.