Base class for CARLA wheeled vehicles. 更多...
#include <CarlaWheeledVehicleNW.h>
Public 成员函数 | |
Constructor and destructor | |
ACarlaWheeledVehicleNW (const FObjectInitializer &ObjectInitializer) | |
~ACarlaWheeledVehicleNW () | |
Public 成员函数 继承自 ACarlaWheeledVehicle | |
ACarlaWheeledVehicle (const FObjectInitializer &ObjectInitializer) | |
~ACarlaWheeledVehicle () | |
const FVehicleControl & | GetVehicleControl () const |
Vehicle control currently applied to this vehicle. | |
const FVehicleAckermannControl & | GetVehicleAckermannControl () const |
Vehicle Ackermann control currently applied to this vehicle. | |
FTransform | GetVehicleTransform () const |
Transform of the vehicle. | |
float | GetVehicleForwardSpeed () const |
Forward speed in cm/s. Might be negative if goes backwards. | |
FVector | GetVehicleOrientation () const |
Orientation vector of the vehicle, pointing forward. | |
int32 | GetVehicleCurrentGear () const |
Active gear of the vehicle. | |
FTransform | GetVehicleBoundingBoxTransform () const |
Transform of the vehicle's bounding box relative to the vehicle. | |
FVector | GetVehicleBoundingBoxExtent () const |
Extent of the vehicle's bounding box. | |
UBoxComponent * | GetVehicleBoundingBox () const |
Get vehicle's bounding box component. | |
float | GetMaximumSteerAngle () const |
Get the maximum angle at which the front wheel can steer. | |
void | SetAIVehicleState (ECarlaWheeledVehicleState InState) |
ECarlaWheeledVehicleState | GetAIVehicleState () const |
FVehiclePhysicsControl | GetVehiclePhysicsControl () const |
FAckermannControllerSettings | GetAckermannControllerSettings () const |
void | RestoreVehiclePhysicsControl () |
FVehicleLightState | GetVehicleLightState () const |
void | ApplyVehiclePhysicsControl (const FVehiclePhysicsControl &PhysicsControl) |
void | ApplyAckermannControllerSettings (const FAckermannControllerSettings &AckermannControllerSettings) |
void | SetSimulatePhysics (bool enabled) |
void | SetWheelCollision (UWheeledVehicleMovementComponent4W *Vehicle4W, const FVehiclePhysicsControl &PhysicsControl) |
void | SetWheelCollisionNW (UWheeledVehicleMovementComponentNW *VehicleNW, const FVehiclePhysicsControl &PhysicsControl) |
void | SetVehicleLightState (const FVehicleLightState &LightState) |
void | SetFailureState (const carla::rpc::VehicleFailureState &FailureState) |
bool | IsTwoWheeledVehicle () |
virtual bool | IsTwoWheeledVehicle_Implementation () |
void | ApplyVehicleControl (const FVehicleControl &Control, EVehicleInputPriority Priority) |
void | ApplyVehicleAckermannControl (const FVehicleAckermannControl &AckermannControl, EVehicleInputPriority Priority) |
bool | IsAckermannControlActive () const |
void | ActivateVelocityControl (const FVector &Velocity) |
void | DeactivateVelocityControl () |
FVehicleTelemetryData | GetVehicleTelemetryData () const |
void | ShowDebugTelemetry (bool Enabled) |
void | FlushVehicleControl () |
void | SetThrottleInput (float Value) |
void | SetSteeringInput (float Value) |
void | SetBrakeInput (float Value) |
void | SetReverse (bool Value) |
void | ToggleReverse () |
void | SetHandbrakeInput (bool Value) |
void | HoldHandbrake () |
void | ReleaseHandbrake () |
TArray< float > | GetWheelsFrictionScale () |
void | SetWheelsFrictionScale (TArray< float > &WheelsFrictionScale) |
void | SetCarlaMovementComponent (UBaseCarlaMovementComponent *MoementComponent) |
template<typename T = UBaseCarlaMovementComponent> | |
T * | GetCarlaMovementComponent () const |
FBox | GetDetectionBox () const |
float | GetDetectionSize () const |
void | UpdateDetectionBox () |
const TArray< int32 > | GetFoliageInstancesCloseToVehicle (const UInstancedStaticMeshComponent *Component) const |
void | DrawFoliageBoundingBox () const |
FBoxSphereBounds | GetBoxSphereBounds () const |
bool | IsInVehicleRange (const FVector &Location) const |
void | SetWheelSteerDirection (EVehicleWheelLocation WheelLocation, float AngleInDeg) |
Set the rotation of the car wheels indicated by the user 0 = FL_VehicleWheel, 1 = FR_VehicleWheel, 2 = BL_VehicleWheel, 3 = BR_VehicleWheel NOTE : This is purely aesthetic. | |
float | GetWheelSteerAngle (EVehicleWheelLocation WheelLocation) |
void | OpenDoor (const EVehicleDoor DoorIdx) |
void | CloseDoor (const EVehicleDoor DoorIdx) |
void | OpenDoorPhys (const EVehicleDoor DoorIdx) |
void | CloseDoorPhys (const EVehicleDoor DoorIdx) |
void | RecordDoorChange (const EVehicleDoor DoorIdx, const bool bIsOpen) |
virtual FVector | GetVelocity () const override |
void | SetRolloverFlag () |
carla::rpc::VehicleFailureState | GetFailureState () const |
float | GetSpeedAnim () const |
void | SetSpeedAnim (float Speed) |
float | GetRotationAnim () const |
void | SetRotationAnim (float Rotation) |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 ACarlaWheeledVehicle | |
static FRotator | GetPhysicsConstraintAngle (UPhysicsConstraintComponent *Component) |
static void | SetPhysicsConstraintAngle (UPhysicsConstraintComponent *Component, const FRotator &NewAngle) |
Public 属性 继承自 ACarlaWheeledVehicle | |
float | DetectionSize { 750.0f } |
FBox | FoliageBoundingBox |
UBoxComponent * | VehicleBounds |
float | CarSimOriginOffset = 150.f |
bool | bIsNWVehicle = false |
float | SpeedAnim { 0.0f } |
float | RotationAnim { 0.0f } |
Protected 成员函数 继承自 ACarlaWheeledVehicle | |
virtual void | BeginPlay () override |
virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) |
void | RefreshLightState (const FVehicleLightState &VehicleLightState) |
void | AdjustVehicleBounds () |
void | ResetConstraints () |
Protected 属性 继承自 ACarlaWheeledVehicle | |
TArray< FName > | ConstraintComponentNames |
float | DoorOpenStrength = 100.0f |
Base class for CARLA wheeled vehicles.
在文件 CarlaWheeledVehicleNW.h 第 15 行定义.
ACarlaWheeledVehicleNW::ACarlaWheeledVehicleNW | ( | const FObjectInitializer & | ObjectInitializer | ) |
在文件 CarlaWheeledVehicleNW.cpp 第 11 行定义.
ACarlaWheeledVehicleNW::~ACarlaWheeledVehicleNW | ( | ) |
在文件 CarlaWheeledVehicleNW.cpp 第 17 行定义.