small raytrace

This commit is contained in:
Xisco Bosch 2017-06-15 14:04:54 +02:00
parent 354c4f4582
commit 60943b2ba4
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ void AAICarlaVehicleController::Tick(float DeltaTime){
FVector forwardVector = GetPawn()->GetActorForwardVector().GetSafeNormal();
float distance;
if (speed < 30.0f) distance = 400.0f;
if (speed < 10.0f) distance = 50.0f;
else {
distance = pow(speed/10.0f,2) * 100.0f;
}