I made some basic air physics and now all of a sudden, when someone gets in the plane it decides to flip out, but when nones in the plane, it doesn’t?
I tried making the player massless but it doesn’t help.
Here’s what I mean:
EXTRA INFO:
uses vector forces and real aerodynamics
works fine without the player, and when i add a part with the exact weight of the player, it doesn’t do anything and flies normally.
oh, and, don’t even say it has anything to due with mass, whatever i do doesn’t work
i didn’t get my equations wrong.
its not the plane, this is an issue with my other plane i made.
local function OnChange()
local lastPilot
if PilotSeat.Occupant ~= nil then
lastPilot = PilotSeat.Occupant.Parent
lastPilot.Humanoid.PlatformStand = true
else
lastPilot.Humanoid.PlatformStand = false
end
end
did this but it doesn’t seem to work
(it kicks the player outside of the seat)
its network ownership im sure.
when the player sits, make sure the network ownership of the jet does not switch to that player (as it usually does by default)
make sure to set the network ownership on the server, to the thing controlling the jet.
I almost wonder, if… when the player sits in the seat, some of the player’s forces are applied before the seat has time to turn them off (since when sitting you exert no forces on anything) Have you tried to first set the player into a PlatformStand, then manually weld them to the plane (avoiding the seat part) just to see if this makes any difference?
Have you tried a non player controlled npc with a humanoid, and if so, did you try and R15 and also an R6, because I know there are some strange physics issues with R15 and water, where as R6 does not have the same issues.
Also, with humanoids some things need to be repeatedly set, such as collision, each frame for them to stay that way, maybe the same is true for the massless? Have you tried setting the riding player’s massless on all parts each frame?