Teardown

Teardown

Air Drag Remover
28 Comments
SPRÏNTY 19 Apr @ 5:41am 
kinda broken because i cant move in the air anymore :<
iamverycool 20 Jan @ 7:58pm 
@qwerty WHAT IN THE WORLD
poopy31016 17 Aug, 2024 @ 8:43am 
im not a hater
poopy31016 17 Aug, 2024 @ 8:43am 
alyssa.hassan unsubicribe to the mod
qwerty 28 Jun, 2024 @ 7:34am 
@laobardar i have ksp 2 its fun
alyssa.hassan 11 Feb, 2024 @ 8:35am 
i tried it and now i cant play teardown no more!
nutdealer 3 Oct, 2023 @ 9:05am 
YES! im so tired of going at 3 mph in the air when im launched by a cannon thank you!
Tarakan_59 19 May, 2023 @ 8:04am 
ideal
Iaobardar  [author] 10 Sep, 2022 @ 4:45pm 
Thank you @fanomlnas!
fanomlnas 8 Sep, 2022 @ 12:28pm 
вы крутой!
Iaobardar  [author] 31 Jul, 2022 @ 3:14pm 
Because I enjoy it quite a bit. I’m not good at it, but it is fun.
leoniesuper.Is 31 Jul, 2022 @ 10:41am 
@iaobardar why does your profile look like Kerbals from the game Kerbal space program
Iaobardar  [author] 11 Mar, 2022 @ 12:18pm 
ok. I'll look into that and test it out some more.
Geneosis 11 Mar, 2022 @ 12:10pm 
@iaobardar: Yes I mean we could probably remove the min function and simply enforce the cap value (between 0.3 and 0.15) based on current FPS :) Will try that and see if it works the same. Well with the 0.15 value at 30 FPS I am stil lgetting drag (my lateral speed lowers with time), but with 0.3 I get no increase nor decrease in lateral speed at all, it is perfectly maintained.
Iaobardar  [author] 11 Mar, 2022 @ 12:06pm 
Well, the min function is what is doing the capping. Also, define working perfectly? What wasn't working with this one?
Geneosis 11 Mar, 2022 @ 11:09am 
On the other hand you are probably right the whole min() function call is probably useless and the cap itself is all that matters...
Geneosis 11 Mar, 2022 @ 11:08am 
@iaobardar: Yes, my point here is that I think the cap is FPS dependent :) Your cap of 0.15 was not working for me at 30 FPS while the 0.3 cap worked perfectly, so I just came up with a formula to get the correct value based on the current FPS ^^
Fitne Por 11 Mar, 2022 @ 12:27am 
we need accelerated back hopping lel
Iaobardar  [author] 10 Mar, 2022 @ 8:35pm 
That is one of the reasons I made this. I was experimenting with recreating some Titanfall 2 (a game which runs on a modified source engine) stuff and it just didn't feel right. You couldn't just very far at all and mobility was severely hampered.
Fitne Por 10 Mar, 2022 @ 4:12pm 
This kinda feels like source engine physics now
Iaobardar  [author] 10 Mar, 2022 @ 2:43pm 
I just looked at your code, lines 166 - 176, and I see very little difference between your code and mine. According to desmos, the max variable is actually a constant 0.3, no matter the fps. And both of us are just applying a capped version of that horizontal velocity. the only difference is the cap. (also, I think I just found a solution to the aforementioned tiny bug while comparing our code.)
Iaobardar  [author] 10 Mar, 2022 @ 2:30pm 
What makes you say that it doesn't work at lower framerates? It is being run in the update function, so it shouldn't be effected by the framerate. I have noticed one bug from this, but it is very subtle and quite hidden. I need to go track it down.
Geneosis 10 Mar, 2022 @ 12:45pm 
So I think your formula works only when the game runs at 60 FPS, I tried to adapt it to work at any FPS value (down to 30) in my Ultimate Jetpack mod.
Could you maybe try it on your computer to confirm my formula still work at 60 FPS? (sadly my PC can only run the game at 30 FPS :/) Feel free to update your mod with this new formula if it works ^^
Iaobardar  [author] 4 Feb, 2022 @ 4:08pm 
yeah, what flashfire said is pretty much correct. Aerodynamic drag is caused by air friction. I don't think TD has true drag calculations for objects, and it may not factor it in at all.

This mod just counteracts the air drag on the player. For gameplay reasons, the developers try to cap the player air speed at 7 m/s (same as walking) by providing lots of air drag: 9 m/s^2 (0.15 m/s per physics tick) All I'm doing with this mod is applying back that lost velocity.
Fitne Por 4 Feb, 2022 @ 10:19am 
What is the default air drag value
m3eppo 3 Feb, 2022 @ 8:59pm 
i think
m3eppo 3 Feb, 2022 @ 8:59pm 
Air drag is what slows an objects horizontal movement in the air. Lets say you have a bullet fired from a gun, the air drag slows down that bullet, now if you remove the drag the bullet never slows at all until it collides with another object.
Voidber 3 Feb, 2022 @ 6:31pm 
What Does Air Drag mean?