Navigation
API > API/Runtime > API/Runtime/ChaosVehiclesCore
| Name | FAerofoil |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/AerofoilSystem.h |
| Include Path | #include "AerofoilSystem.h" |
Syntax
class FAerofoil : public TVehicleSystem< FAerofoilConfig >
Inheritance Hierarchy
- TVehicleSystem → FAerofoil
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAerofoil () |
AerofoilSystem.h | ||
FAerofoil
(
const FAerofoilConfig* SetupIn |
AerofoilSystem.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AerofoilId | int | AerofoilSystem.h | ||
| AirflowNormal | FVector | AerofoilSystem.h | ||
| AngleOfAttack | float | AerofoilSystem.h | ||
| ControlSurfaceAngle | float | AerofoilSystem.h | ||
| CurrentAirDensity | float | AerofoilSystem.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 | AerofoilSystem.h | |
float CalcCentreOfLift() |
Center of lift moves fore/aft based on current AngleOfAttack | AerofoilSystem.h | |
float CalcDragCoefficient
(
float InAngleOfAttack, |
Returns drag coefficient for the current angle of attack of the aerofoil surface | AerofoilSystem.h | |
float CalcDynamicPressure
(
float VelocitySqr, |
Dynamic air pressure = 0.5 * AirDensity * Vsqr This function reduces the dynamic pressure in a linear fashion with altitude between MinCeiling & MaxCeiling in order to limit the aircrafts altitude with a 'natural feel' without having a hard limit | AerofoilSystem.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 | AerofoilSystem.h | |
FVector GetAxis() |
AerofoilSystem.h | ||
FVector GetCenterOfLiftOffset() |
AerofoilSystem.h | ||
FVector GetForce
(
FTransform& BodyTransform, |
Returns the combined force of lift and drag at an aerofoil in world coordinates for direct application to the aircrafts rigid body. | AerofoilSystem.h | |
FVector GetOffset() |
AerofoilSystem.h | ||
void SetAerofoilId
(
int Id |
Set a debug Id so we can identify an individual aerofoil | AerofoilSystem.h | |
void SetControlSurface
(
float CtrlSurfaceInput |
AerofoilSystem.h | ||
void SetDensityOfMedium
(
float InDensity |
AerofoilSystem.h |