언리얼 엔진/C++

언리얼엔진 C++ MovementYawOffset

mane 2022. 6. 6. 19:31
728x90
반응형

const FRotator AimRotation = PlayerCharacter->GetBaseAimRotation();
const FRotator MovementRotation = UKismetMathLibrary::MakeRotFromX(PlayerCharacter->GetVelocity());

MovementOffsetYaw = UKismetMathLibrary::NormalizedDeltaRotator(MovementRotation,AimRotation).Yaw;

 

if(PlayerCharacter>GetVelocity().Size() > 0.f)
{
LastMovementOffsetYaw = MovementOffsetYaw;
}

728x90
반응형