Navigation
API > API/Runtime > API/Runtime/ChaosVehiclesCore
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
| Type | Name | Description | |
|---|---|---|---|
FAerofoil () |
|||
FAerofoil
(
const FAerofoilConfig* SetupIn |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | CalcAngleOfAttackDegrees
(
const FVector& UpAxis, |
Angle of attack is the angle between the aerofoil and the airflow vector | |
| float | Center of lift moves fore/aft based on current AngleOfAttack | ||
| float | CalcDragCoefficient
(
float InAngleOfAttack, |
Returns drag coefficient for the current angle of attack of the aerofoil surface | |
| 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 | |
| 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 | |
| FVector | GetAxis () |
||
| FVector | |||
| 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. | |
| FVector | GetOffset () |
||
| void | SetAerofoilId
(
int Id |
Set a debug Id so we can identify an individual aerofoil | |
| void | SetControlSurface
(
float CtrlSurfaceInput |
||
| void | SetDensityOfMedium
(
float InDensity |