9 #include "Components/ActorComponent.h" 10 #include "Components/PrimitiveComponent.h" 11 #include "CoreMinimal.h" 13 #include "VehicleVelocityControl.generated.h" 16 UCLASS(Blueprintable, BlueprintType, ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
17 class CARLA_API UVehicleVelocityControl :
public UActorComponent
26 UVehicleVelocityControl();
35 void BeginPlay() override;
37 virtual
void TickComponent(
float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override;
40 virtual
void Activate(
bool bReset=false) override;
43 virtual
void Activate(FVector Velocity,
bool bReset=false);
46 virtual
void Deactivate() override;
50 UPROPERTY(Category = "
Vehicle Velocity Control", VisibleAnywhere)
51 FVector TargetVelocity;