CARLA
Functions
WheeledVehicleMovementComponentNW.cpp File Reference
#include "WheeledVehicleMovementComponentNW.h"
#include "PhysicsPublic.h"
#include "PhysXPublic.h"
#include "PhysXVehicleManager.h"
#include "Components/PrimitiveComponent.h"
#include "Logging/MessageLog.h"
+ Include dependency graph for WheeledVehicleMovementComponentNW.cpp:

Go to the source code of this file.

Functions

void BackwardsConvertCm2ToM2NW (float &val, float defaultValue)
 
static void GetVehicleAutoBoxSetup (const FVehicleNWTransmissionData &Setup, PxVehicleAutoBoxData &PxSetup)
 
static void GetVehicleDifferentialNWSetup (const TArray< FVehicleNWWheelDifferentialData > &Setup, PxVehicleDifferentialNWData &PxSetup)
 
static void GetVehicleEngineSetup (const FVehicleNWEngineData &Setup, PxVehicleEngineData &PxSetup)
 
static void GetVehicleGearSetup (const FVehicleNWTransmissionData &Setup, PxVehicleGearsData &PxSetup)
 
void SetupDriveHelper (const UWheeledVehicleMovementComponentNW *VehicleData, const PxVehicleWheelsSimData *PWheelsSimData, PxVehicleDriveSimDataNW &DriveData)
 

Function Documentation

◆ BackwardsConvertCm2ToM2NW()

void BackwardsConvertCm2ToM2NW ( float &  val,
float  defaultValue 
)

Definition at line 354 of file WheeledVehicleMovementComponentNW.cpp.

◆ GetVehicleAutoBoxSetup()

static void GetVehicleAutoBoxSetup ( const FVehicleNWTransmissionData Setup,
PxVehicleAutoBoxData &  PxSetup 
)
static

Definition at line 160 of file WheeledVehicleMovementComponentNW.cpp.

References FVehicleNWGearData::DownRatio, FVehicleNWTransmissionData::ForwardGears, FVehicleNWTransmissionData::GearAutoBoxLatency, FVehicleNWTransmissionData::NeutralGearUpRatio, and FVehicleNWGearData::UpRatio.

Referenced by SetupDriveHelper().

+ Here is the caller graph for this function:

◆ GetVehicleDifferentialNWSetup()

static void GetVehicleDifferentialNWSetup ( const TArray< FVehicleNWWheelDifferentialData > &  Setup,
PxVehicleDifferentialNWData &  PxSetup 
)
static

Definition at line 105 of file WheeledVehicleMovementComponentNW.cpp.

Referenced by SetupDriveHelper().

+ Here is the caller graph for this function:

◆ GetVehicleEngineSetup()

static void GetVehicleEngineSetup ( const FVehicleNWEngineData Setup,
PxVehicleEngineData &  PxSetup 
)
static

Definition at line 126 of file WheeledVehicleMovementComponentNW.cpp.

References FVehicleNWEngineData::DampingRateFullThrottle, FVehicleNWEngineData::DampingRateZeroThrottleClutchDisengaged, FVehicleNWEngineData::DampingRateZeroThrottleClutchEngaged, FVehicleNWEngineData::FindPeakTorque(), FVehicleNWEngineData::MaxRPM, FVehicleNWEngineData::MOI, and FVehicleNWEngineData::TorqueCurve.

Referenced by SetupDriveHelper().

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

◆ GetVehicleGearSetup()

static void GetVehicleGearSetup ( const FVehicleNWTransmissionData Setup,
PxVehicleGearsData &  PxSetup 
)
static

Definition at line 148 of file WheeledVehicleMovementComponentNW.cpp.

References FVehicleNWTransmissionData::FinalRatio, FVehicleNWTransmissionData::ForwardGears, FVehicleNWTransmissionData::GearSwitchTime, and FVehicleNWTransmissionData::ReverseGearRatio.

Referenced by SetupDriveHelper().

+ Here is the caller graph for this function:

◆ SetupDriveHelper()

void SetupDriveHelper ( const UWheeledVehicleMovementComponentNW *  VehicleData,
const PxVehicleWheelsSimData *  PWheelsSimData,
PxVehicleDriveSimDataNW &  DriveData 
)

Definition at line 178 of file WheeledVehicleMovementComponentNW.cpp.

References GetVehicleAutoBoxSetup(), GetVehicleDifferentialNWSetup(), GetVehicleEngineSetup(), and GetVehicleGearSetup().

+ Here is the call graph for this function: