Skip to content

Simple AirFoil simulation; originally made by Sleitnick (Crazyman32), modified By Widgeon, and ported to roblox-ts by InfinityDesign

License

Notifications You must be signed in to change notification settings

ZachCurtis/rbxts-airfoil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.AspectRatio

Methods

airFoil.Update()
airFoil.Stop()
airFoil.GetLiftCoefficient(angleOfAttack)
airFoil.GetDragCoefficient(liftCoefficient)

References:

NASA.gov Modern Lift Equation

NASA.gov Modern Drag Equation

NASA.gov Inclination Effects on Lift

"CM32 Modified Fin Module" Roblox model by Widgeon

About

Simple AirFoil simulation; originally made by Sleitnick (Crazyman32), modified By Widgeon, and ported to roblox-ts by InfinityDesign

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages