7 #include "GameFramework/Actor.h" 8 #include "Components/BoxComponent.h" 11 #include "FrictionTrigger.generated.h" 22 void UpdateWheelsFriction(AActor *OtherActor, TArray<float>& NewFriction);
29 void OnTriggerBeginOverlap(
35 const FHitResult &SweepResult);
38 void OnTriggerEndOverlap(
42 int32 OtherBodyIndex);
56 Friction = NewFriction;
61 virtual void BeginPlay()
override;
63 virtual void EndPlay(EEndPlayReason::Type EndPlayReason)
override;
65 virtual void Tick(
float DeltaTime)
override;
72 UPROPERTY(EditAnywhere)
73 float Friction = 0.0f;
75 UPROPERTY(EditAnywhere)
76 UBoxComponent *TriggerVolume;
void SetFriction(float NewFriction)
TArray< float > OldFrictionValues
void SetBoxExtent(const FVector &Extent)
void SetEpisode(const UCarlaEpisode &InEpisode)