- What do you want to achieve?
I am trying to utilize sleitnicks airfoil script to make realistic airplane physics
- What is the issue? Include screenshots / videos if possible!
It never works despite all the code checking out
local Parts = script.Parent.AirfoilParts
local AirfoilModule = require(script.Airfoil)
local Mass = 0
function GetMass(Model)
for _, v in pairs(Model:GetChildren()) do
if v:IsA("BasePart") then
Mass = Mass + v:GetMass()
end
end
end
GetMass(script.Parent)
for _, v in pairs(Parts:GetChildren()) do
if v:IsA("BasePart") then
local Airfoil = AirfoilModule.new(v, Mass * 100)
game:GetService('RunService').Heartbeat:Connect(function()
Airfoil:Update(CFrame.new(0,15,0))
end)
end
end
-
What solutions have you tried so far?
I’ve tried changing the mass, the CFrame offsetAirfoil:Update(CFrameOffset)
and even the speed but it just won’t work. I tried looking in DevForums for any insights or tutorials on this but there isn’t anything.
The thing is sleitnicks biplane model works perfectly but when I try to utilize it, it flops. If anybody could help me, that’d be much appreciated.