#include <ChronoMovementComponent.h>
Static Public Member Functions | |
static void | CreateChronoMovementComponent (ACarlaWheeledVehicle *Vehicle, uint64_t MaxSubsteps, float MaxSubstepDeltaTime, FString VehicleJSON="", FString PowertrainJSON="", FString TireJSON="", FString BaseJSONPath="") |
Private Member Functions | |
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 Attributes | |
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" |
Additional Inherited Members | |
Public Member Functions inherited from UBaseCarlaMovementComponent | |
virtual void | BeginPlay () override |
virtual int32 | GetVehicleCurrentGear () const |
virtual float | GetVehicleForwardSpeed () const |
virtual FVector | GetVelocity () const |
virtual void | ProcessControl (FVehicleControl &Control) |
Protected Member Functions inherited from UBaseCarlaMovementComponent | |
void | DisableUE4VehiclePhysics () |
void | EnableUE4VehiclePhysics (bool bResetVelocity=true) |
Protected Attributes inherited from UBaseCarlaMovementComponent | |
ACarlaWheeledVehicle * | CarlaVehicle |
Definition at line 52 of file ChronoMovementComponent.h.
|
static |
Definition at line 21 of file ChronoMovementComponent.cpp.
References BaseJSONPath, UBaseCarlaMovementComponent::BeginPlay(), FVehicleControl::bHandBrake, FVehicleControl::Brake, FVehicleControl::bReverse, UBaseCarlaMovementComponent::CarlaVehicle, ACarlaWheeledVehicle::Control, UDefaultMovementComponent::CreateDefaultMovementComponent(), UBaseCarlaMovementComponent::DisableUE4VehiclePhysics(), UBaseCarlaMovementComponent::GetVehicleCurrentGear(), UBaseCarlaMovementComponent::GetVehicleForwardSpeed(), UBaseCarlaMovementComponent::GetVelocity(), MaxSubstepDeltaTime, MaxSubsteps, OnVehicleHit(), OnVehicleOverlap(), PowertrainJSON, UBaseCarlaMovementComponent::ProcessControl(), ACarlaWheeledVehicle::SetCarlaMovementComponent(), FVehicleControl::Steer, FVehicleControl::Throttle, TireJSON, Vehicle, VehicleControl, and VehicleJSON.
Referenced by FVehicleActor::EnableChronoPhysics().
|
private |
Definition at line 351 of file ChronoMovementComponent.cpp.
References UBaseCarlaMovementComponent::CarlaVehicle, UDefaultMovementComponent::CreateDefaultMovementComponent(), UBaseCarlaMovementComponent::EnableUE4VehiclePhysics(), carla::log_warning(), OnVehicleHit(), and OnVehicleOverlap().
Referenced by OnVehicleHit(), and OnVehicleOverlap().
|
private |
Definition at line 364 of file ChronoMovementComponent.cpp.
References DisableChronoPhysics().
Referenced by CreateChronoMovementComponent(), and DisableChronoPhysics().
|
private |
Definition at line 374 of file ChronoMovementComponent.cpp.
References DisableChronoPhysics().
Referenced by CreateChronoMovementComponent(), and DisableChronoPhysics().
|
private |
Definition at line 68 of file ChronoMovementComponent.h.
Referenced by CreateChronoMovementComponent().
|
private |
Definition at line 63 of file ChronoMovementComponent.h.
Referenced by CreateChronoMovementComponent().
|
private |
Definition at line 62 of file ChronoMovementComponent.h.
Referenced by CreateChronoMovementComponent().
|
private |
Definition at line 66 of file ChronoMovementComponent.h.
Referenced by CreateChronoMovementComponent().
|
private |
Definition at line 67 of file ChronoMovementComponent.h.
Referenced by CreateChronoMovementComponent().
|
private |
Definition at line 64 of file ChronoMovementComponent.h.
Referenced by CreateChronoMovementComponent().
|
private |
Definition at line 65 of file ChronoMovementComponent.h.
Referenced by CreateChronoMovementComponent().