| 6 | #include "Kismet/KismetSystemLibrary.h" |
| 7 | |
| 8 | void ASoul::Tick(float DeltaTime) |
| 9 | { |
| 10 | Super::Tick(DeltaTime); |
| 11 | |
| 12 | const double LocationZ = GetActorLocation().Z; |
| 13 | if (LocationZ > DesiredZ) |
| 14 | { |
| 15 | const FVector DeltaLocation = FVector(0.f, 0.f, DriftRate * DeltaTime); |
| 16 | AddActorWorldOffset(DeltaLocation); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | void ASoul::BeginPlay() |
| 21 | { |
nothing calls this directly
no outgoing calls
no test coverage detected