Project Zomboid

Project Zomboid

Better Car Physics
 This topic has been pinned, so it's probably important
Neidmare  [developer] 15 Jan, 2023 @ 3:46am
Suggestions & Planned Features
Leave your suggestions here :)

Planned features:
  • Option to keep W as gas in reverse gear Done!
Last edited by Neidmare; 19 Jan, 2023 @ 7:42am
< >
Showing 1-15 of 60 comments
Engine Of Darkness 15 Jan, 2023 @ 7:56am 
Would it be feasible to modify the way tires "grip" to the road on the fly (while driving)?

While you cannot do "donuts" or spin out the tires, your car can have it's rear slip or understeer, so I wonder if it would be feasible to modify the "grip" of the tire based on

- The type of tile a tire is on
- the weather (snow / rain amount) on a tile?
-- also based on speed for rain, e.g. to "fake" aquaplaning

Or a combination of both (e.g. snow on grass would be worse than snow on gravel)

This could also be combined with tricks like lowering the tire pressure to get a bit more plyability in e.g. snowy conditions (currently you want to max out the pressure always for example)
çüksüzkurt 15 Jan, 2023 @ 9:13am 
Hey you can add car slippers that will clean the blood on the windshield when you use it
Neidmare  [developer] 15 Jan, 2023 @ 9:18am 
Originally posted by Engine Of Darkness:
Would it be feasible to modify the way tires "grip" to the road on the fly (while driving)?

While you cannot do "donuts" or spin out the tires, your car can have it's rear slip or understeer, so I wonder if it would be feasible to modify the "grip" of the tire based on

- The type of tile a tire is on
- the weather (snow / rain amount) on a tile?
-- also based on speed for rain, e.g. to "fake" aquaplaning

Or a combination of both (e.g. snow on grass would be worse than snow on gravel)

This could also be combined with tricks like lowering the tire pressure to get a bit more plyability in e.g. snowy conditions (currently you want to max out the pressure always for example)

The whole tire friction part happens in the C++ physics simulation, I cant change that unfortunately. As far as I can tell, the simulation averages the friction of all wheels and then determines whether the car slides based on that. You cant access or influence how much an individual tire slips. The only way to change the grip is to change the tire friction. Also, when the car slips, you cant accelerate, at least it seemed so in my testing.
Neidmare  [developer] 15 Jan, 2023 @ 9:19am 
Originally posted by çüksüzkurt:
Hey you can add car slippers that will clean the blood on the windshield when you use it

No, this is not the mod for that, sorry.
Catman 15 Jan, 2023 @ 10:12am 
Would an option to toggle AWD for heavy-duty vehicle ever make it into your mod? It could increase speed and torque off-road and manoeuvrability on wet/snowy roads when toggled.

Also, I have always been looking for a mod that adds bumpers. Some vehicles added by mods already do that so they may be conflicts but bumpers could be toggled individually for each vehicle (via ModOptions or whatever). Bumpers should absorb most of the damage and should be very resistant to it, considering its main purpose is to withstand physical trauma, but it wouldn't absorb it all and high-speed crashes would have a configurable impact on the hood-, lights- and engine condition. I know this would take a lot of work, especially if you made it so that removing a bumper from a car would have visual effects. I mean... When you remove it, you can actually see that it's missing. Indeed that is a lot of work but bumpers could be categorized into the 3 main vehicle types (standard, sport and heavy-duty) instead of each car having its own bumper, as well as it would make you, you know, pretty damn cool. :) Thank you for reading this and have a nice day.
Neidmare  [developer] 15 Jan, 2023 @ 11:01am 
Originally posted by Catman:
Would an option to toggle AWD for heavy-duty vehicle ever make it into your mod? It could increase speed and torque off-road and manoeuvrability on wet/snowy roads when toggled.

I dont have a toggle, but the mod does use the offRoadEfficiency of each vehicle. Most normal cars have 0.8, jeeps have 1.1. All vehicles drive slower / lower top speed offroad, but jeeps are less impacted.

Originally posted by Catman:
Also, I have always been looking for a mod that adds bumpers..

I totally agree, beeing able to attach reinforcements to vanilla cars would be amazing. I'll have a look at how I could implement this and try to see if its doable.
Hyolffe 15 Jan, 2023 @ 9:46pm 
would it be possible for say gear slippage or grinding if the engine is below a certain percentage...i say engine cuz theres no gearboxes yet
also maybe backfiring using the same idea?
dunno if either is possible but might be cool
Last edited by Hyolffe; 15 Jan, 2023 @ 9:46pm
Neidmare  [developer] 16 Jan, 2023 @ 12:36am 
Originally posted by Wolffe:
would it be possible for say gear slippage or grinding if the engine is below a certain percentage...i say engine cuz theres no gearboxes yet
also maybe backfiring using the same idea?
dunno if either is possible but might be cool

If you listen closely, the engine sound changes with low engine condition. Thats already in the base game.

Modifying the engine sound is ultra complex if we want to do it properly.
A one time sound like a backfire might be easier to do. But I think that would be part of a tuning mod that also has stuff like turbochargers etc.
Hyolffe 16 Jan, 2023 @ 1:10am 
Originally posted by Neidmare:
Originally posted by Wolffe:
would it be possible for say gear slippage or grinding if the engine is below a certain percentage...i say engine cuz theres no gearboxes yet
also maybe backfiring using the same idea?
dunno if either is possible but might be cool

If you listen closely, the engine sound changes with low engine condition. Thats already in the base game.

Modifying the engine sound is ultra complex if we want to do it properly.
A one time sound like a backfire might be easier to do. But I think that would be part of a tuning mod that also has stuff like turbochargers etc.
fair enough- a tuning mod does sound neat actually
Neidmare  [developer] 16 Jan, 2023 @ 1:21am 
Originally posted by Wolffe:
fair enough- a tuning mod does sound neat actually

I found this recently: https://www.youtube.com/watch?v=hhxO8c6jr2g
It's been 7 months, but maybe they are still working on it?
following some comments reporting modded cars becoming very powerful, is it possible for the mod to include balancing for the more popular car mods? the vanilla cars in this mod are amazing and really fun to use, and generally modded sport and normal vehicles are fine, but ki5 trucks and semis get pretty crazy
Neidmare  [developer] 17 Jan, 2023 @ 3:23am 
Originally posted by ahzidaljun:
following some comments reporting modded cars becoming very powerful, is it possible for the mod to include balancing for the more popular car mods? the vanilla cars in this mod are amazing and really fun to use, and generally modded sport and normal vehicles are fine, but ki5 trucks and semis get pretty crazy

Yeah I'll look into that today. Off the top of my head there are two possible solutions:
- Find some way to make the other mod's weight/HP values work with this mod
- Add 'patch' mods for the other mods that adjust the weight/HP values, similar to this one: https://steamproxy.net/sharedfiles/filedetails/?id=2895778133&searchtext=mercedes+w460

I'd prefer the first option, but it might not be possible. I dont know yet.
Last edited by Neidmare; 17 Jan, 2023 @ 3:23am
Originally posted by Neidmare:
Originally posted by ahzidaljun:
following some comments reporting modded cars becoming very powerful, is it possible for the mod to include balancing for the more popular car mods? the vanilla cars in this mod are amazing and really fun to use, and generally modded sport and normal vehicles are fine, but ki5 trucks and semis get pretty crazy

Yeah I'll look into that today. Off the top of my head there are two possible solutions:
- Find some way to make the other mod's weight/HP values work with this mod
- Add 'patch' mods for the other mods that adjust the weight/HP values, similar to this one:

I'd prefer the first option, but it might not be possible. I dont know yet.

there are some mods here that "automatically" patch for other mods, but i'm not sure how that works. for example Evolving Traits World has compatibility with a ton of trait mods but doesn't require any of them

maybe some kind of cap on speed/acceleration based on the limits within your own mod could help, though there are trait mods that give you better stats like those, like More Trait's expert driver, and those may be less effective with a implementation like that.
thank you for considering this!
Neidmare  [developer] 17 Jan, 2023 @ 1:41pm 
Alright I tested a bunch of the most subscribed mods. 95% of them work very well.

There are some exceptions that have a tad high acceleration, mostly the unconventional stuff like armored vehicles.
There is nothing I can do about that, my guess is that these cars also accelerate very quickly in the base game. The solution would be to lower their engine HP or to increase the mass. That is something that is up to the author of that mod to decide.
I think some mods do that because offroad driving in the base game is super slow.

A final thing you could try if you are experiencing super fast acceleration is whether you have a mod installed that tweaks offroad performance, like the one I linked in the previous post. From what I have seen, these mods increase the HP of the engine by a lot. With BetterCarPhysics, these tweaks should not be necessary anymore, because it fixes offroad driving as well.
USER404 18 Jan, 2023 @ 12:36am 
I mentioned it on comments but would be really neat to have both automatic and manual gear vehicles. Perhaps would be possible tie it into a modular system like the one Tsar's common library offers so you could actually see the gearbox and clutch component once you open the hood and if you have enough mechanics skill to be able to repair, replace or even swap said components. Would be also a way to have the durability variable, so if the gearbox condition is low the gear might pop out, or if the clutch is done you cannot swift gears at all.
Last edited by USER404; 18 Jan, 2023 @ 12:41am
< >
Showing 1-15 of 60 comments
Per page: 1530 50