UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ThrusterModule.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
7#define UE_API CHAOSVEHICLESCORE_API
8
9
10namespace Chaos
11{
12 struct FAllInputs;
13 class FSimModuleTree;
14
44
49 class FThrusterSimModule : public ISimulationModuleBase, public TSimModuleSettings<FThrusterSettings>, public TSimulationModuleTypeable<FThrusterSimModule>
50 {
51 public:
54
55 virtual TSharedPtr<FModuleNetData> GenerateNetData(const int32 NodeArrayIndex) const override { return nullptr; }
56
57 virtual const FString GetDebugName() const { return TEXT("Thruster"); }
58
59 virtual bool IsBehaviourType(eSimModuleTypeFlags InType) const override { return (InType & NonFunctional); }
60
61 UE_API virtual void Simulate(float DeltaTime, const FAllInputs& Inputs, FSimModuleTree& VehicleModuleSystem) override;
62
63 UE_API virtual void Animate() override;
64
65 float GetSteerAngleDegrees() const { return SteerAngleDegrees; }
66
67 private:
68 float SteerAngleDegrees;
69 };
70
71
72} // namespace Chaos
73
74#undef UE_API
#define TEXT(x)
Definition Platform.h:1272
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UE_API
Definition SColorGradingComponentViewer.h:12
Definition SimModuleTree.h:98
A vehicle component that transmits torque from one source to another, i.e. from an engine or differen...
Definition ThrusterModule.h:50
virtual TSharedPtr< FModuleNetData > GenerateNetData(const int32 NodeArrayIndex) const override
Definition ThrusterModule.h:55
DEFINE_CHAOSSIMTYPENAME(FThrusterSimModule)
virtual UE_API void Animate() override
Definition ThrusterModule.cpp:35
virtual const FString GetDebugName() const
Definition ThrusterModule.h:57
float GetSteerAngleDegrees() const
Definition ThrusterModule.h:65
virtual bool IsBehaviourType(eSimModuleTypeFlags InType) const override
Definition ThrusterModule.h:59
virtual UE_API void Simulate(float DeltaTime, const FAllInputs &Inputs, FSimModuleTree &VehicleModuleSystem) override
Definition ThrusterModule.cpp:20
Definition SimulationModuleBase.h:299
Definition SimulationModuleBase.h:113
Definition ModuleFactoryRegister.h:42
Definition SharedPointer.h:692
Definition SkeletalMeshComponent.h:307
eSimModuleTypeFlags
Definition SimulationModuleBase.h:143
@ NonFunctional
Definition SimulationModuleBase.h:144
@ false
Definition radaudio_common.h:23
Definition SimulationModuleBase.h:65
Thruster settings.
Definition ThrusterModule.h:19
float SteeringForceEffect
Definition ThrusterModule.h:39
float MaxThrustForce
Definition ThrusterModule.h:34
float BoostMultiplier
Definition ThrusterModule.h:40
FThrusterSettings()
Definition ThrusterModule.h:20
float MaxSpeed
Definition ThrusterModule.h:41
FVector SteeringAxis
Definition ThrusterModule.h:36
bool SteeringEnabled
Definition ThrusterModule.h:42
float MaxSteeringAngle
Definition ThrusterModule.h:38
FVector ForceAxis
Definition ThrusterModule.h:35
FVector ForceOffset
Definition ThrusterModule.h:37