CARLA
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
UCarSimManagerComponent Class Reference

#include <CarSimManagerComponent.h>

+ Inheritance diagram for UCarSimManagerComponent:
+ Collaboration diagram for UCarSimManagerComponent:

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
ACarlaWheeledVehicleCarlaVehicle
 

Detailed Description

Definition at line 22 of file CarSimManagerComponent.h.

Member Function Documentation

◆ BeginPlay()

void UCarSimManagerComponent::BeginPlay ( )
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.

+ Here is the call graph for this function:

◆ CreateCarsimComponent()

void UCarSimManagerComponent::CreateCarsimComponent ( ACarlaWheeledVehicle Vehicle,
FString  Simfile 
)
static

Definition at line 18 of file CarSimManagerComponent.cpp.

References ACarlaWheeledVehicle::SetCarlaMovementComponent(), SimfilePath, and Vehicle.

Referenced by FVehicleActor::EnableCarSim().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EndPlay()

void UCarSimManagerComponent::EndPlay ( const EEndPlayReason::Type  EndPlayReason)
overridevirtual

Definition at line 185 of file CarSimManagerComponent.cpp.

References UBaseCarlaMovementComponent::CarlaVehicle, OnCarSimEndOverlap(), OnCarSimHit(), and OnCarSimOverlap().

+ Here is the call graph for this function:

◆ GetVehicleCurrentGear()

int32 UCarSimManagerComponent::GetVehicleCurrentGear ( ) const
overridevirtual

Reimplemented from UBaseCarlaMovementComponent.

Definition at line 216 of file CarSimManagerComponent.cpp.

◆ GetVehicleForwardSpeed()

float UCarSimManagerComponent::GetVehicleForwardSpeed ( ) const
overridevirtual

Reimplemented from UBaseCarlaMovementComponent.

Definition at line 225 of file CarSimManagerComponent.cpp.

◆ GetVelocity()

FVector UCarSimManagerComponent::GetVelocity ( ) const
overridevirtual

Reimplemented from UBaseCarlaMovementComponent.

Definition at line 207 of file CarSimManagerComponent.cpp.

◆ OnCarSimEndOverlap()

void UCarSimManagerComponent::OnCarSimEndOverlap ( UPrimitiveComponent OverlappedComponent,
AActor OtherActor,
UPrimitiveComponent OtherComp,
int32  OtherBodyIndex 
)
private

Definition at line 168 of file CarSimManagerComponent.cpp.

Referenced by BeginPlay(), and EndPlay().

+ Here is the caller graph for this function:

◆ OnCarSimHit()

void UCarSimManagerComponent::OnCarSimHit ( AActor Actor,
AActor OtherActor,
FVector  NormalImpulse,
const FHitResult &  Hit 
)
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OnCarSimOverlap()

void UCarSimManagerComponent::OnCarSimOverlap ( UPrimitiveComponent OverlappedComponent,
AActor OtherActor,
UPrimitiveComponent OtherComp,
int32  OtherBodyIndex,
bool  bFromSweep,
const FHitResult &  SweepResult 
)
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessControl()

void UCarSimManagerComponent::ProcessControl ( FVehicleControl Control)
overridevirtual

◆ TickComponent()

void UCarSimManagerComponent::TickComponent ( float  DeltaTime,
ELevelTick  TickType,
FActorComponentTickFunction *  ThisTickFunction 
)
overridevirtual

Definition at line 88 of file CarSimManagerComponent.cpp.

◆ UseCarSimRoad()

void UCarSimManagerComponent::UseCarSimRoad ( bool  bEnabled)

Definition at line 175 of file CarSimManagerComponent.cpp.

Referenced by FVehicleActor::UseCarSimRoad().

+ Here is the caller graph for this function:

Member Data Documentation

◆ SimfilePath

FString UCarSimManagerComponent::SimfilePath = ""

Definition at line 37 of file CarSimManagerComponent.h.

Referenced by BeginPlay(), and CreateCarsimComponent().


The documentation for this class was generated from the following files: