Navigation
API > API/Runtime > API/Runtime/ChaosVehiclesCore > API/Runtime/ChaosVehiclesCore/SimModule
Inheritance Hierarchy
- ISimulationModuleBase
- TSimModuleSettings
- TSimulationModuleTypeable
- FAerofoilSimModule
References
| Module | ChaosVehiclesCore |
| Header | /Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/SimModule/AerofoilModule.h |
| Include | #include "SimModule/AerofoilModule.h" |
Syntax
class FAerofoilSimModule :
public Chaos::ISimulationModuleBase ,
public Chaos::TSimModuleSettings< FAerofoilSettings > ,
public Chaos::TSimulationModuleTypeable< FAerofoilSimModule >
Variables
| Type | Name | Description | |
|---|---|---|---|
| int | AerofoilId | ||
| FVector | AirflowNormal | ||
| float | AngleOfAttack | ||
| float | ControlSurfaceAngle | ||
| float | CurrentAirDensity |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAerofoilSimModule
(
const FAerofoilSettings& Settings |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FName | |||
| 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 | |
| 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 | |||
| FVector | Returns the combined force of lift and drag at an aerofoil in local coordinates for direct application to the aircrafts rigid body. | ||
| void | SetControlSurface
(
float CtrlSurfaceInput |
||
| void | SetDensityOfMedium
(
float InDensity |
Overridden from ISimulationModuleBase
| Type | Name | Description | |
|---|---|---|---|
| void | Animate
(
Chaos::FClusterUnionPhysicsProxy* Proxy |
Animate/modify the childToParent transforms, to say rotate a wheel, or rudder, etc | |
| TSharedPtr< FModuleNetData > | GenerateNetData
(
const int32 NodeArrayIndex |
This is the replication datas | |
| const FString | GetDebugName () |
Get the friendly name for this module, primarily for logging & debugging module tree | |
| bool | IsBehaviourType
(
eSimModuleTypeFlags InType |
Is Module of a specific behavioral data type | |
| void | Simulate
(
float DeltaTime, |
The main Simulation function that is called from the physics async callback thread |