Package Exports
- @rbxts/airfoil
- @rbxts/airfoil/out/init.lua
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rbxts/airfoil) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
AirFoil
Simple AirFoil simulation; originally made by Sleitnick (Crazyman32), modified By Widgeon, and ported to roblox-ts by InfinityDesign.
This module handles the aerodynamic physics of a single airfoil by constantly calculating the lift and drag forces that act upon the foil.
Example
import { RunService } from "@rbxts/services"
import { Airfoil } from "../Airfoil"
const wing = new AirFoil(part, massOfPlane)
RunService.Heartbeat.Connect(() => {
wing.Update()
})
// NOTE: airFoil.Update() should be called every "Heartbeat" (RunService.Heartbeat)Fields
airFoil.Part
airFoil.Area
airFoil.FrontalArea
airFoil.VectorForce
airFoil.DragAtZero
airFoil.DragEfficiency
airFoil.MaxForceLift
airFoil.MaxForceDrag
airFoil.LiftCoMultiplier
airFoil.AspectRatioMethods
airFoil.Update()
airFoil.Stop()
airFoil.GetLiftCoefficient(angleOfAttack)
airFoil.GetDragCoefficient(liftCoefficient)