Navigation
API > API/Runtime > API/Runtime/ChaosVehiclesCore
| Name | FAerofoilSimModule |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/SimModule/AerofoilModule.h |
| Include Path | #include "SimModule/AerofoilModule.h" |
Syntax
class FAerofoilSimModule :
public Chaos::ISimulationModuleBase ,
public Chaos::TSimModuleSettings< FAerofoilSettings > ,
public Chaos::TSimulationModuleTypeable< FAerofoilSimModule >
Inheritance Hierarchy
- TSimModuleSettings → FAerofoilSimModule
- TSimulationModuleTypeable → FAerofoilSimModule
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAerofoilSimModule
(
const FAerofoilSettings& Settings |
SimModule/AerofoilModule.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FAerofoilSimModule() |
SimModule/AerofoilModule.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AerofoilId | int | SimModule/AerofoilModule.h | ||
| AirflowNormal | FVector | SimModule/AerofoilModule.h | ||
| AngleOfAttack | float | SimModule/AerofoilModule.h | ||
| ControlSurfaceAngle | float | SimModule/AerofoilModule.h | ||
| CurrentAirDensity | float | SimModule/AerofoilModule.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FAerofoilOutputData | friend | SimModule/AerofoilModule.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float CalcAngleOfAttackDegrees
(
const FVector& UpAxis, |
Angle of attack is the angle between the aerofoil and the airflow vector | SimModule/AerofoilModule.h | |
float CalcCentreOfLift() |
Center of lift moves fore/aft based on current AngleOfAttack | SimModule/AerofoilModule.h | |
float CalcDragCoefficient
(
float InAngleOfAttack, |
Returns drag coefficient for the current angle of attack of the aerofoil surface | SimModule/AerofoilModule.h | |
float CalcDynamicPressure
(
float VelocitySqr, |
Dynamic air pressure = 0.5 * AirDensity * Vsqr | SimModule/AerofoilModule.h | |
float CalcLiftCoefficient
(
float InAngleOfAttack, |
Returns lift coefficient for the current angle of attack of the aerofoil surface Cheating by making control surface part of entire aerofoil movement | SimModule/AerofoilModule.h | |
FVector GetCenterOfLiftOffset() |
SimModule/AerofoilModule.h | ||
FVector GetForce
(
const FVector& v, |
Returns the combined force of lift and drag at an aerofoil in local coordinates for direct application to the aircrafts rigid body. | SimModule/AerofoilModule.h | |
void SetControlSurface
(
float CtrlSurfaceInput |
SimModule/AerofoilModule.h | ||
void SetDensityOfMedium
(
float InDensity |
SimModule/AerofoilModule.h |
Overridden from ISimulationModuleBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Animate() |
Animate/modify the childToParent transforms, to say rotate a wheel, or rudder, etc | SimModule/AerofoilModule.h | |
virtual TSharedPtr< FModuleNetData > GenerateNetData
(
const int32 NodeArrayIndex |
This is the replication datas | SimModule/AerofoilModule.h | |
virtual FSimOutputData * GenerateOutputData() |
SimModule/AerofoilModule.h | ||
virtual const FString GetDebugName() |
Get the friendly name for this module, primarily for logging & debugging module tree | SimModule/AerofoilModule.h | |
virtual bool IsBehaviourType
(
eSimModuleTypeFlags InType |
Is Module of a specific behavioral data type | SimModule/AerofoilModule.h | |
virtual void Simulate
(
float DeltaTime, |
The main Simulation function that is called from the physics async callback thread | SimModule/AerofoilModule.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FName CHAOSTYPENAMERETRIVAL() |
SimModule/AerofoilModule.h |