The Re-Inventing the Wheel Thread

Hey guys,

I’m at the point now where you started. I’m working on my game since half a year and did my vehicle movement (tanks and nwheeled armored cars) veeeery basic. Like as basic as it gets, I’m just moving the meshes with addLocalOffset and addLocalRotation. Having my formulas behind it looks nice and works flawlessly. One might laugh at the approach but it really just serves the purpose I needed and it looks good. However as soon as physics come into play its not very realistic. You can fly around and move up 90° slopes because its not force based, also my meshes don’t have a velocity since I’m just pushing them around with offsets and if you crash 2 of them into each other they fly around. Plus I don’t have a suspension yet which worked for tanks but the wheeled vehicles look horrible without it.

So I’m a little uncertain on how to proceed. I want to do it all on blueprint, mainly due to issues with porting to other engine version and I have all my other logic in there as well. There are many people that tackled the rework of a wheeled vehicle component but I could not find one that worked for me. I’m at UE V4.23.1 atm and couldn’t get a single one to work (compilation errors and missing plugins).
@tegleg I’m currently downloading the 4.22 version of the engine and hope it will run there, could not get it working on 4.23.
@BoredEngineer I also tried the MMT-project but with the same issue, can’t get it to work on 4.23 and from the look of the demo project it looks too complicated for me (I’m not heading for physical simulation perfection, rather a well adjustable simplistic system that makes it look as real as possible).

At this point I’m thinking about making a simple wheel component just as you guys started. Meaning a BP-class that you can add to your actor (as many as you want) which includes all the logic (suspension, friction, thrust/engine) with parameters to tweak how it reacts. If you were to restart at such point, what tips would you give? Or is there something like this out there that you know of that works with newer versions? (Theres 4.25 out now and they wont stop making new ones).

I also tried out the built-in systems with vehicle component (which doesnt work for tracked vehicles) and an approach using constraints and sphere collision but I cannot control those as much as I need (e.g. something trivial as getting the response if the wheels are in contact with the ground made me go crazy). With a setup as linetrace its very easy to do it. Also I could not get the spheres to rotate without using an angular motor so that approach pretty much died for me. But the basic suspension was working, just not the moving part.

Sorry if I got something wrong or there is an obvious solution but I’m just stuck there atm and not sure on how to proceed without the problems mentioned.

Thanks and have a nice day,
Lai