32 virtual void BeginDestroy()
override;
43 void AddRoute(
float probability,
const TArray<FVector> &routePoints);
55 UFUNCTION(BlueprintCallable, Category =
"Traffic Routes", meta = (WorldContext =
"WorldContextObject"))
56 static
bool FindRoadFlowRotationAtLocation(
57 const
UObject *WorldContextObject,
58 const FVector &Location,
60 FRotator &OutRotation);
65 virtual void PostEditChangeProperty(FPropertyChangedEvent &PropertyChangedEvent)
override;
69 virtual void BeginPlay()
override;
71 virtual void EndPlay(EEndPlayReason::Type EndPlayReason)
override;
74 void OnTriggerBeginOverlap(
75 UPrimitiveComponent *OverlappedComp,
77 UPrimitiveComponent *OtherComp,
80 const FHitResult &SweepResult);
84 UPROPERTY(EditAnywhere)
87 UPROPERTY(BlueprintReadWrite, Category = "Traffic Routes", EditAnywhere)
88 TArray<TObjectPtr<USplineComponent>> Routes;
90 UPROPERTY(BlueprintReadWrite, Category = "Traffic Routes", EditAnywhere, EditFixedSize)
91 TArray<
float> Probabilities;
93 UPROPERTY(BlueprintReadWrite, Category = "Traffic Routes", EditAnywhere, EditFixedSize)
94 bool bIsIntersection = false;