14#include "CarSimMovementComponent.h"
17#include "CarSimManagerComponent.generated.h"
21UCLASS(Blueprintable, meta=(BlueprintSpawnableComponent) )
29 UCarSimMovementComponent * CarSimMovementComponent;
34 static void CreateCarsimComponent(
37 FString SimfilePath =
"";
41 virtual void TickComponent(
float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
override;
47 virtual void EndPlay(
const EEndPlayReason::Type EndPlayReason)
override;
49 void UseCarSimRoad(
bool bEnabled);
55 void DisableCarSimPhysics();
57 virtual void DisableSpecialPhysics()
override;
63 void OnCarSimHit(
AActor *Actor,
65 FVector NormalImpulse,
66 const FHitResult &Hit);
76 const FHitResult & SweepResult);
84 int32 OtherBodyIndex);
Base class for CARLA wheeled vehicles.
virtual void BeginPlay() override
int32 GetVehicleCurrentGear() const
Active gear of the vehicle.
float GetVehicleForwardSpeed() const
Forward speed in cm/s. Might be negative if goes backwards.
virtual FVector GetVelocity() const override
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason)