CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | Private 成员函数 | 所有成员列表
UCarSimManagerComponent类 参考

#include <CarSimManagerComponent.h>

+ 类 UCarSimManagerComponent 继承关系图:
+ UCarSimManagerComponent 的协作图:

Public 成员函数

virtual void BeginPlay () override
 
void DisableCarSimPhysics ()
 
virtual void DisableSpecialPhysics () 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)
 
virtual void BeginPlay () override
 
virtual void DisableSpecialPhysics ()
 
virtual int32 GetVehicleCurrentGear () const
 
virtual float GetVehicleForwardSpeed () const
 
virtual FVector GetVelocity () const
 
virtual void ProcessControl (FVehicleControl &Control)
 

静态 Public 成员函数

static void CreateCarsimComponent (ACarlaWheeledVehicle *Vehicle, FString Simfile)
 

Public 属性

FString SimfilePath = ""
 

Private 成员函数

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)
 

额外继承的成员函数

- Protected 成员函数 继承自 UBaseCarlaMovementComponent
void DisableUE4VehiclePhysics ()
 
void EnableUE4VehiclePhysics (bool bResetVelocity=true)
 
- Protected 属性 继承自 UBaseCarlaMovementComponent
ACarlaWheeledVehicle * CarlaVehicle
 

详细描述

在文件 CarSimManagerComponent.h 第 26 行定义.

成员函数说明

◆ BeginPlay()

void UCarSimManagerComponent::BeginPlay ( )
overridevirtual

重载 UBaseCarlaMovementComponent .

在文件 CarSimManagerComponent.cpp 第 31 行定义.

引用了 UBaseCarlaMovementComponent::CarlaVehicle, ACarlaWheeledVehicle::CarSimOriginOffset, carla::log_warning(), OnCarSimEndOverlap(), OnCarSimHit(), OnCarSimOverlap(), SimfilePath , 以及 UE_LOG().

+ 函数调用图:

◆ CreateCarsimComponent()

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

在文件 CarSimManagerComponent.cpp 第 18 行定义.

引用了 SimfilePath, UE_LOG() , 以及 Vehicle.

被这些函数引用 FVehicleActor::EnableCarSim().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ DisableCarSimPhysics()

void UCarSimManagerComponent::DisableCarSimPhysics ( )

在文件 CarSimManagerComponent.cpp 第 106 行定义.

引用了 UBaseCarlaMovementComponent::CarlaVehicle, UDefaultMovementComponent::CreateDefaultMovementComponent(), carla::log_warning() , 以及 ACarlaWheeledVehicle::RestoreVehiclePhysicsControl().

被这些函数引用 DisableSpecialPhysics(), OnCarSimHit() , 以及 OnCarSimOverlap().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ DisableSpecialPhysics()

void UCarSimManagerComponent::DisableSpecialPhysics ( )
overridevirtual

重载 UBaseCarlaMovementComponent .

在文件 CarSimManagerComponent.cpp 第 130 行定义.

引用了 DisableCarSimPhysics().

+ 函数调用图:

◆ EndPlay()

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

在文件 CarSimManagerComponent.cpp 第 176 行定义.

引用了 UBaseCarlaMovementComponent::CarlaVehicle, OnCarSimEndOverlap(), OnCarSimHit(), OnCarSimOverlap() , 以及 UE_LOG().

+ 函数调用图:

◆ GetVehicleCurrentGear()

int32 UCarSimManagerComponent::GetVehicleCurrentGear ( ) const
overridevirtual

重载 UBaseCarlaMovementComponent .

在文件 CarSimManagerComponent.cpp 第 207 行定义.

◆ GetVehicleForwardSpeed()

float UCarSimManagerComponent::GetVehicleForwardSpeed ( ) const
overridevirtual

重载 UBaseCarlaMovementComponent .

在文件 CarSimManagerComponent.cpp 第 216 行定义.

◆ GetVelocity()

FVector UCarSimManagerComponent::GetVelocity ( ) const
overridevirtual

重载 UBaseCarlaMovementComponent .

在文件 CarSimManagerComponent.cpp 第 198 行定义.

◆ OnCarSimEndOverlap()

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

在文件 CarSimManagerComponent.cpp 第 159 行定义.

被这些函数引用 BeginPlay() , 以及 EndPlay().

+ 这是这个函数的调用关系图:

◆ OnCarSimHit()

void UCarSimManagerComponent::OnCarSimHit ( AActor *  Actor,
AActor *  OtherActor,
FVector  NormalImpulse,
const FHitResult &  Hit 
)
private

在文件 CarSimManagerComponent.cpp 第 135 行定义.

引用了 DisableCarSimPhysics().

被这些函数引用 BeginPlay() , 以及 EndPlay().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ OnCarSimOverlap()

void UCarSimManagerComponent::OnCarSimOverlap ( UPrimitiveComponent *  OverlappedComponent,
AActor *  OtherActor,
UPrimitiveComponent *  OtherComp,
int32  OtherBodyIndex,
bool  bFromSweep,
const FHitResult &  SweepResult 
)
private

在文件 CarSimManagerComponent.cpp 第 144 行定义.

引用了 DisableCarSimPhysics().

被这些函数引用 BeginPlay() , 以及 EndPlay().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ ProcessControl()

void UCarSimManagerComponent::ProcessControl ( FVehicleControl &  Control)
overridevirtual

◆ TickComponent()

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

在文件 CarSimManagerComponent.cpp 第 88 行定义.

◆ UseCarSimRoad()

void UCarSimManagerComponent::UseCarSimRoad ( bool  bEnabled)

在文件 CarSimManagerComponent.cpp 第 166 行定义.

被这些函数引用 FVehicleActor::UseCarSimRoad().

+ 这是这个函数的调用关系图:

类成员变量说明

◆ SimfilePath

FString UCarSimManagerComponent::SimfilePath = ""

在文件 CarSimManagerComponent.h 第 41 行定义.

被这些函数引用 BeginPlay() , 以及 CreateCarsimComponent().


该类的文档由以下文件生成: