Garry's Mod

Garry's Mod

// DR5VE & SEEK //
o7v || wip 17 Jun, 2024 @ 9:49pm
[BUG] Wheel/Suspension physics breaking
Unsure why this is happening, but any level change on brush geometry will cause the wheels to rotate with insane velocity, launching the car and making it hop.

I have recordings of it that can be provided, gamemode was only addon active.
< >
Showing 1-8 of 8 comments
Zet0r  [developer] 18 Jun, 2024 @ 5:10am 
This is the staircase mechanic at play. Whenever the wheels collide with a ledge lower than some set maximum step height, the wheels will teleport to the top of the point of impact, as well as restore the velocity they had at the moment of impact. This is what makes driving on 90% of all city maps with sidewalks so smooth. The goal is to make it seem like the ledge doesn't exist at all.

It is however not supposed to launch you faster. Also the wheels shouldn't spin any faster, but how fast the wheels are spinning also shouldn't matter, since the wheels are not the ones actually driving the car (they roll freely). Could you perhaps show me the recordings?

There is one exception, which is if you are holding Ctrl. Then, this step mechanic will indeed launch not just the wheel that collided, but also the whole rest of the car, giving a satisfying ramping experience.
Shirito 18 Jun, 2024 @ 3:21pm 
Same happened to me
Secret Albatross 18 Jun, 2024 @ 6:09pm 
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2309960739

Hey guys, check out this thread. You may be describing a behavior relating to simfphys vehicles and physics updates. Try settings physics iterations higher in sandbox and then switching back to the gamemode.
o7v || wip 18 Jun, 2024 @ 8:32pm 
Changing the physics iterations worked.

Thank you Albatross!
Jinxit 18 Jun, 2024 @ 10:10pm 
setting it to 10 is very bad advice. Set it to 4 thats the default value
Zet0r  [developer] 19 Jun, 2024 @ 4:31am 
Originally posted by zo7v:
Changing the physics iterations worked.

Thank you Albatross!
What was your value before this? My game plays very well with just 4 iterations, as Luna said, so I'm wondering what yours was before when it broke like this.

Also, you can set the iterations through the console. No need to boot up Sandbox just to do it. It's just "gmod_physiterations".
o7v || wip 19 Jun, 2024 @ 7:35am 
For some reason, it was set to 1.

Unsure if a subscribed addon changed the value or if I changed it during my own development.
Jinxit 19 Jun, 2024 @ 2:54pm 
Originally posted by zo7v:
For some reason, it was set to 1.

Unsure if a subscribed addon changed the value or if I changed it during my own development.

alot of performance "optimizer" addons crank it down to 1. So if you ever played on a server that had this, your setting would have been saved to that breaking literally every physics based addon
Last edited by Jinxit; 19 Jun, 2024 @ 2:55pm
< >
Showing 1-8 of 8 comments
Per page: 1530 50