전체 글

전체 글

    [UE5 C++] Unreal 물체 이동과 회전

    void ATank::Move(float Value) { FVector DeltaLocation=FVector::ZeroVector; //X=Value*DeltaTime*Speed DeltaLocation.X=Value*Speed*UGameplayStatics::GetWorldDeltaSeconds(this); AddActorLocalOffset(DeltaLocation,true); } sweep = true , 물체와 충돌했을 때 정지 https://www.unrealengine.com/ko/blog/moving-physical-objects void ATank::Turn(float Value) { FRotator DeltaRotation=FRotator::ZeroRotator; //Yaw = Valu..