SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
84 stars 18 forks source link

[Preview Branch] vehicles acting weird with destroyed wheels #4520

Open biedaktokox opened 2 months ago

biedaktokox commented 2 months ago

When an FWD car doesn't have back wheels, it moonwalks, when an RWD car doesn't have front wheels, it goes twice as fast. In case videos don't work, wait a bit because YouTube might still analyze them.

Moonwalk: https://www.youtube.com/watch?v=ZOKAmgOenRk RWD: https://www.youtube.com/watch?v=9GvJAhCUpFk (ignore my friend's photos)

biedaktokox commented 2 months ago

Also, painting vehicles seems really boring, how about adding the ability to add an effect that will play when vehicle is painted?

Jdance-Media commented 2 months ago

I agree, having an Effect gameobject would be nice.

SDGNelson commented 2 months ago

Thanks for the report! I must've forgotten to consider destroyed wheels when calculating the engine RPM.

SDGNelson commented 2 months ago

"Moonwalking" driving with front wheels without back wheels:

I think this might be happening because the steered front wheels are completely parallel. (The steered wheels have always been parallel, to be clear.)

At some point I would like to implement Ackermann steering which will fix them being parallel.

For the moment, however, it at least isn't a bug of the rigidbody being unable to rotate or something. When driving like this onto hills it does rotate and adjust to the terrain. ¯\_(ツ)_/¯

Rear-wheel drive without front wheels:

I totally thought this would be an engine or wheel RPM related bug. But nope! It seems to be down to the reduction in mass and drag from losing the front wheels. In my notes on the preview branch page I mentioned that mass and wheel friction are a prime target for further improvements, and this very much reinforces that.

Maybe it's OK for the meta to be removing wheels if you're willing to lose the ability to steer? 😄