#include <CarSimManagerComponent.h>
Public Member Functions | |
virtual void | BeginPlay () override |
virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
int32 | GetVehicleCurrentGear () const override |
float | GetVehicleForwardSpeed () const override |
FVector | GetVelocity () const override |
void | ProcessControl (FVehicleControl &Control) override |
virtual void | TickComponent (float DeltaTime, ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override |
void | UseCarSimRoad (bool bEnabled) |
Static Public Member Functions | |
static void | CreateCarsimComponent (ACarlaWheeledVehicle *Vehicle, FString Simfile) |
Public Attributes | |
FString | SimfilePath = "" |
Private Member Functions | |
void | OnCarSimEndOverlap (UPrimitiveComponent *OverlappedComponent, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex) |
void | OnCarSimHit (AActor *Actor, AActor *OtherActor, FVector NormalImpulse, const FHitResult &Hit) |
void | OnCarSimOverlap (UPrimitiveComponent *OverlappedComponent, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult &SweepResult) |
Additional Inherited Members | |
Protected Member Functions inherited from UBaseCarlaMovementComponent | |
void | DisableUE4VehiclePhysics () |
void | EnableUE4VehiclePhysics (bool bResetVelocity=true) |
Protected Attributes inherited from UBaseCarlaMovementComponent | |
ACarlaWheeledVehicle * | CarlaVehicle |
Definition at line 22 of file CarSimManagerComponent.h.
|
overridevirtual |
Reimplemented from UBaseCarlaMovementComponent.
Definition at line 31 of file CarSimManagerComponent.cpp.
References UBaseCarlaMovementComponent::CarlaVehicle, ACarlaWheeledVehicle::CarSimOriginOffset, carla::log_warning(), OnCarSimEndOverlap(), OnCarSimHit(), OnCarSimOverlap(), and SimfilePath.
|
static |
Definition at line 18 of file CarSimManagerComponent.cpp.
References ACarlaWheeledVehicle::SetCarlaMovementComponent(), SimfilePath, and Vehicle.
Referenced by FVehicleActor::EnableCarSim().
|
overridevirtual |
Definition at line 185 of file CarSimManagerComponent.cpp.
References UBaseCarlaMovementComponent::CarlaVehicle, OnCarSimEndOverlap(), OnCarSimHit(), and OnCarSimOverlap().
|
overridevirtual |
Reimplemented from UBaseCarlaMovementComponent.
Definition at line 216 of file CarSimManagerComponent.cpp.
|
overridevirtual |
Reimplemented from UBaseCarlaMovementComponent.
Definition at line 225 of file CarSimManagerComponent.cpp.
|
overridevirtual |
Reimplemented from UBaseCarlaMovementComponent.
Definition at line 207 of file CarSimManagerComponent.cpp.
|
private |
Definition at line 168 of file CarSimManagerComponent.cpp.
Referenced by BeginPlay(), and EndPlay().
|
private |
Definition at line 106 of file CarSimManagerComponent.cpp.
References UBaseCarlaMovementComponent::CarlaVehicle, UDefaultMovementComponent::CreateDefaultMovementComponent(), carla::log_warning(), and ACarlaWheeledVehicle::RestoreVehiclePhysicsControl().
Referenced by BeginPlay(), and EndPlay().
|
private |
Definition at line 134 of file CarSimManagerComponent.cpp.
References UBaseCarlaMovementComponent::CarlaVehicle, UDefaultMovementComponent::CreateDefaultMovementComponent(), carla::log_warning(), and ACarlaWheeledVehicle::RestoreVehiclePhysicsControl().
Referenced by BeginPlay(), and EndPlay().
|
overridevirtual |
Reimplemented from UBaseCarlaMovementComponent.
Definition at line 92 of file CarSimManagerComponent.cpp.
References FVehicleControl::bHandBrake, FVehicleControl::Brake, FVehicleControl::Gear, FVehicleControl::Steer, and FVehicleControl::Throttle.
|
overridevirtual |
Definition at line 88 of file CarSimManagerComponent.cpp.
void UCarSimManagerComponent::UseCarSimRoad | ( | bool | bEnabled | ) |
Definition at line 175 of file CarSimManagerComponent.cpp.
Referenced by FVehicleActor::UseCarSimRoad().
FString UCarSimManagerComponent::SimfilePath = "" |
Definition at line 37 of file CarSimManagerComponent.h.
Referenced by BeginPlay(), and CreateCarsimComponent().