Pawn Movement
새로운 C++ 클래스 생성 - Pawn (Public)
C_Pawn.h
C_Pawn.cpp
Blueprint를 C_Pawn 기반으로 제작
Capsule Component와 Skeletal Mesh Component의 Physics를 비활성화
(Physics : 물리법칙, 중력 등)
-----------------------------------
Roll, Pitch, Yaw
IA_Look
void AC_Pawn::Look(const FInputActionValue& value)
{
const FVector2D LookInput = value.Get<FVector2D>();
FRotator LookRotator = FRotator(LookInput.Y, LookInput.X, 0);
AddActorLocalRotation(LookRotator);
}
언리얼 엔진의 좌표 (Left Handed)
X - Roll
Y - Pitch
Z - Yaw
'Unreal Engine Blueprint & C++' 카테고리의 다른 글
2/4 Unreal Engine PlayerController (0) | 2025.02.05 |
---|---|
2/3 Unreal Engine IA, IMC (0) | 2025.02.05 |
1/30 Unreal Engine Actor (Static Mesh), Pawn Class (0) | 2025.02.05 |
1/28 Character Class 캐릭터 구현 (0) | 2025.01.28 |
1/27 C++ Class & Reflection System (0) | 2025.01.28 |