Bug placer pawn now updates at 60Hz.
This commit is contained in:
parent
5667a99105
commit
5d7435e67f
@ -131,7 +131,7 @@ void ABugPlacerPawn::Activate()
|
|||||||
|
|
||||||
UGameplayStatics::GetPlayerController(this, 0)->Possess(this);
|
UGameplayStatics::GetPlayerController(this, 0)->Possess(this);
|
||||||
|
|
||||||
float TraceInterval = this->GetActorTickInterval() > 0.0f ? this->GetActorTickInterval() : 1.0f / 30.0f;
|
float TraceInterval = this->GetActorTickInterval() > 0.0f ? this->GetActorTickInterval() : 1.0f / 60.0f;
|
||||||
this->GetWorldTimerManager().SetTimer(this->TraceTimerHandle, this, &ABugPlacerPawn::TraceTimerElapsed, TraceInterval, true);
|
this->GetWorldTimerManager().SetTimer(this->TraceTimerHandle, this, &ABugPlacerPawn::TraceTimerElapsed, TraceInterval, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user