Teardown
Air Drag Remover
28 条留言
SPRÏNTY 4 月 19 日 上午 5:41 
kinda broken because i cant move in the air anymore :<
iamverycool 1 月 20 日 下午 7:58 
@qwerty WHAT IN THE WORLD
poopy31016 2024 年 8 月 17 日 上午 8:43 
im not a hater
poopy31016 2024 年 8 月 17 日 上午 8:43 
alyssa.hassan unsubicribe to the mod
qwerty 2024 年 6 月 28 日 上午 7:34 
@laobardar i have ksp 2 its fun
alyssa.hassan 2024 年 2 月 11 日 上午 8:35 
i tried it and now i cant play teardown no more!
WDGrimm 2023 年 10 月 3 日 上午 9:05 
YES! im so tired of going at 3 mph in the air when im launched by a cannon thank you!
Tarakan_59 2023 年 5 月 19 日 上午 8:04 
ideal
Iaobardar  [作者] 2022 年 9 月 10 日 下午 4:45 
Thank you @fanomlnas!
fanomlnas 2022 年 9 月 8 日 下午 12:28 
вы крутой!
Iaobardar  [作者] 2022 年 7 月 31 日 下午 3:14 
Because I enjoy it quite a bit. I’m not good at it, but it is fun.
leoniesuper.Is 2022 年 7 月 31 日 上午 10:41 
@iaobardar why does your profile look like Kerbals from the game Kerbal space program
Iaobardar  [作者] 2022 年 3 月 11 日 下午 12:18 
ok. I'll look into that and test it out some more.
Geneosis 2022 年 3 月 11 日 下午 12:10 
@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  [作者] 2022 年 3 月 11 日 下午 12:06 
Well, the min function is what is doing the capping. Also, define working perfectly? What wasn't working with this one?
Geneosis 2022 年 3 月 11 日 上午 11:09 
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 2022 年 3 月 11 日 上午 11:08 
@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 2022 年 3 月 11 日 上午 12:27 
we need accelerated back hopping lel
Iaobardar  [作者] 2022 年 3 月 10 日 下午 8:35 
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 2022 年 3 月 10 日 下午 4:12 
This kinda feels like source engine physics now
Iaobardar  [作者] 2022 年 3 月 10 日 下午 2:43 
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  [作者] 2022 年 3 月 10 日 下午 2:30 
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 2022 年 3 月 10 日 下午 12:45 
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  [作者] 2022 年 2 月 4 日 下午 4:08 
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 2022 年 2 月 4 日 上午 10:19 
What is the default air drag value
m3eppo 2022 年 2 月 3 日 下午 8:59 
i think
m3eppo 2022 年 2 月 3 日 下午 8:59 
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 2022 年 2 月 3 日 下午 6:31 
What Does Air Drag mean?