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

#include <ChronoMovementComponent.h>

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

Public 成员函数

virtual void DisableSpecialPhysics () override
 
- Public 成员函数 继承自 UBaseCarlaMovementComponent
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 CreateChronoMovementComponent (ACarlaWheeledVehicle *Vehicle, uint64_t MaxSubsteps, float MaxSubstepDeltaTime, FString VehicleJSON="", FString PowertrainJSON="", FString TireJSON="", FString BaseJSONPath="")
 

Private 成员函数

void DisableChronoPhysics ()
 
void OnVehicleHit (AActor *Actor, AActor *OtherActor, FVector NormalImpulse, const FHitResult &Hit)
 
void OnVehicleOverlap (UPrimitiveComponent *OverlappedComponent, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult &SweepResult)
 

Private 属性

FString BaseJSONPath = ""
 
float MaxSubstepDeltaTime = 0.01
 
uint64_t MaxSubsteps = 10
 
FString PowertrainJSON = "hmmwv/powertrain/HMMWV_ShaftsPowertrain.json"
 
FString TireJSON = "hmmwv/tire/HMMWV_Pac02Tire.json"
 
FVehicleControl VehicleControl
 
FString VehicleJSON = "hmmwv/vehicle/HMMWV_Vehicle.json"
 

额外继承的成员函数

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

详细描述

在文件 ChronoMovementComponent.h52 行定义.

成员函数说明

◆ CreateChronoMovementComponent()

void UChronoMovementComponent::CreateChronoMovementComponent ( ACarlaWheeledVehicle Vehicle,
uint64_t  MaxSubsteps,
float  MaxSubstepDeltaTime,
FString  VehicleJSON = "",
FString  PowertrainJSON = "",
FString  TireJSON = "",
FString  BaseJSONPath = "" 
)
static

在文件 ChronoMovementComponent.cpp21 行定义.

引用了 BaseJSONPath, MaxSubstepDeltaTime, MaxSubsteps, PowertrainJSON, TireJSON, UE_LOG(), Vehicle , 以及 VehicleJSON.

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

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

◆ DisableChronoPhysics()

void UChronoMovementComponent::DisableChronoPhysics ( )
private

在文件 ChronoMovementComponent.cpp355 行定义.

引用了 UBaseCarlaMovementComponent::CarlaVehicle, UDefaultMovementComponent::CreateDefaultMovementComponent(), UBaseCarlaMovementComponent::EnableUE4VehiclePhysics(), OnVehicleHit() , 以及 OnVehicleOverlap().

被这些函数引用 DisableSpecialPhysics(), OnVehicleHit() , 以及 OnVehicleOverlap().

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

◆ DisableSpecialPhysics()

void UChronoMovementComponent::DisableSpecialPhysics ( )
overridevirtual

重载 UBaseCarlaMovementComponent .

在文件 ChronoMovementComponent.cpp350 行定义.

引用了 DisableChronoPhysics().

+ 函数调用图:

◆ OnVehicleHit()

void UChronoMovementComponent::OnVehicleHit ( AActor Actor,
AActor OtherActor,
FVector  NormalImpulse,
const FHitResult &  Hit 
)
private

在文件 ChronoMovementComponent.cpp367 行定义.

引用了 DisableChronoPhysics() , 以及 carla::log_warning().

被这些函数引用 DisableChronoPhysics().

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

◆ OnVehicleOverlap()

void UChronoMovementComponent::OnVehicleOverlap ( UPrimitiveComponent OverlappedComponent,
AActor OtherActor,
UPrimitiveComponent OtherComp,
int32  OtherBodyIndex,
bool  bFromSweep,
const FHitResult &  SweepResult 
)
private

在文件 ChronoMovementComponent.cpp378 行定义.

引用了 DisableChronoPhysics() , 以及 carla::log_warning().

被这些函数引用 DisableChronoPhysics().

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

类成员变量说明

◆ BaseJSONPath

FString UChronoMovementComponent::BaseJSONPath = ""
private

在文件 ChronoMovementComponent.h68 行定义.

被这些函数引用 CreateChronoMovementComponent().

◆ MaxSubstepDeltaTime

float UChronoMovementComponent::MaxSubstepDeltaTime = 0.01
private

在文件 ChronoMovementComponent.h63 行定义.

被这些函数引用 CreateChronoMovementComponent().

◆ MaxSubsteps

uint64_t UChronoMovementComponent::MaxSubsteps = 10
private

在文件 ChronoMovementComponent.h62 行定义.

被这些函数引用 CreateChronoMovementComponent().

◆ PowertrainJSON

FString UChronoMovementComponent::PowertrainJSON = "hmmwv/powertrain/HMMWV_ShaftsPowertrain.json"
private

在文件 ChronoMovementComponent.h66 行定义.

被这些函数引用 CreateChronoMovementComponent().

◆ TireJSON

FString UChronoMovementComponent::TireJSON = "hmmwv/tire/HMMWV_Pac02Tire.json"
private

在文件 ChronoMovementComponent.h67 行定义.

被这些函数引用 CreateChronoMovementComponent().

◆ VehicleControl

FVehicleControl UChronoMovementComponent::VehicleControl
private

在文件 ChronoMovementComponent.h64 行定义.

◆ VehicleJSON

FString UChronoMovementComponent::VehicleJSON = "hmmwv/vehicle/HMMWV_Vehicle.json"
private

在文件 ChronoMovementComponent.h65 行定义.

被这些函数引用 CreateChronoMovementComponent().


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