MCPcopy Create free account
hub / github.com/DruidMech/UE5_TheUltimateDeveloperCourse / Tick

Method Tick

Source/Slash/Private/Items/Soul.cpp:8–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "Kismet/KismetSystemLibrary.h"
7
8void 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
20void ASoul::BeginPlay()
21{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected