CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
Unreal
CarlaUnreal
Plugins
Carla
Source
Carla
Vehicle
MovementComponents
BaseCarlaMovementComponent.h
Go to the documentation of this file.
1
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
2
// de Barcelona (UAB).
3
// Copyright (c) 2019 Intel Corporation
4
//
5
// This work is licensed under the terms of the MIT license.
6
// For a copy, see <https://opensource.org/licenses/MIT>.
7
8
#pragma once
9
10
#include "
Carla/Vehicle/VehicleControl.h
"
11
12
#include <util/ue-header-guard-begin.h>
13
#include "GameFramework/MovementComponent.h"
14
#include <util/ue-header-guard-end.h>
15
16
#include "BaseCarlaMovementComponent.generated.h"
17
18
class
ACarlaWheeledVehicle
;
19
20
UCLASS(Blueprintable, meta=(BlueprintSpawnableComponent))
21
class CARLA_API
UBaseCarlaMovementComponent
: public
UMovementComponent
22
{
23
GENERATED_BODY()
24
25
protected
:
26
27
UPROPERTY()
28
ACarlaWheeledVehicle
*
CarlaVehicle
;
29
30
public:
31
32
virtual
void
BeginPlay
() override;
33
34
virtual
void
ProcessControl
(
FVehicleControl
&Control);
35
36
virtual FVector
GetVelocity
() const;
37
38
virtual int32
GetVehicleCurrentGear
() const;
39
40
virtual
float
GetVehicleForwardSpeed
() const;
41
42
protected:
43
44
void
DisableUE4VehiclePhysics
();
45
46
void
EnableUE4VehiclePhysics
(
bool
bResetVelocity = true);
47
};
VehicleControl.h
ACarlaWheeledVehicle
Base class for CARLA wheeled vehicles.
Definition
CarlaWheeledVehicle.h:85
UBaseCarlaMovementComponent
Definition
BaseCarlaMovementComponent.h:22
UBaseCarlaMovementComponent::ProcessControl
virtual void ProcessControl(FVehicleControl &Control)
Definition
BaseCarlaMovementComponent.cpp:30
UBaseCarlaMovementComponent::BeginPlay
virtual void BeginPlay() override
Definition
BaseCarlaMovementComponent.cpp:16
UBaseCarlaMovementComponent::GetVehicleCurrentGear
virtual int32 GetVehicleCurrentGear() const
Definition
BaseCarlaMovementComponent.cpp:44
UBaseCarlaMovementComponent::GetVehicleForwardSpeed
virtual float GetVehicleForwardSpeed() const
Definition
BaseCarlaMovementComponent.cpp:49
UBaseCarlaMovementComponent::EnableUE4VehiclePhysics
void EnableUE4VehiclePhysics(bool bResetVelocity=true)
Definition
BaseCarlaMovementComponent.cpp:71
UBaseCarlaMovementComponent::GetVelocity
virtual FVector GetVelocity() const
Definition
BaseCarlaMovementComponent.cpp:35
UBaseCarlaMovementComponent::CarlaVehicle
ACarlaWheeledVehicle * CarlaVehicle
Definition
BaseCarlaMovementComponent.h:28
UBaseCarlaMovementComponent::DisableUE4VehiclePhysics
void DisableUE4VehiclePhysics()
Definition
BaseCarlaMovementComponent.cpp:54
UMovementComponent
FVehicleControl
Definition
Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Vehicle/VehicleControl.h:13
Generated by
1.18.0