small raytrace
This commit is contained in:
parent
354c4f4582
commit
60943b2ba4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue