FAerofoil

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

TVehicleSystem

FAerofoil

References

Module

ChaosVehiclesCore

Header

/Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/AerofoilSystem.h

Include

#include "AerofoilSystem.h"

Syntax

class FAerofoil : public TVehicleSystem< FAerofoilConfig >

Constructors

Name Description

Public function

FAerofoil()

Public function

FAerofoil

(
    const FAerofoilConfig* SetupIn
)

Functions

Name Description

Public function

float

 

CalcAngleOfAttackDegrees

(
    const FVector& UpAxis,
    const FVector& InAirflowVector
)

Angle of attack is the angle between the aerofoil and the airflow vector

Public function

float

 

CalcCentreOfLift()

Center of lift moves fore/aft based on current AngleOfAttack

Public function

float

 

CalcDragCoefficient

(
    float InAngleOfAttack,
    float InControlSurfaceAngle
)

Returns drag coefficient for the current angle of attack of the aerofoil surface

Public function

float

 

CalcDynamicPressure

(
    float VelocitySqr,
    float InAltitude
)

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

Public function

float

 

CalcLiftCoefficient

(
    float InAngleOfAttack,
    float InControlSurfaceAngle
)

Returns lift coefficient for the current angle of attack of the aerofoil surface Cheating by making control surface part of entire aerofoil movement

Public function

FVector

 

GetAxis()

Public function

FVector

 

GetCenterOfLiftOffset()

Public function

FVector

 

GetForce

(
    FTransform& BodyTransform,
    const FVector& v,
    float Altitude,
    float DeltaTime
)

Returns the combined force of lift and drag at an aerofoil in world coordinates for direct application to the aircrafts rigid body.

Public function

FVector

 

GetOffset()

Public function

void

 

SetAerofoilId

(
    int Id
)

Set a debug Id so we can identify an individual aerofoil

Public function

void

 

SetControlSurface

(
    float CtrlSurfaceInput
)

Public function

void

 

SetDensityOfMedium

(
    float InDensity
)