C++ - Vehicle - Apply torque to wheel,
I'm trying to create a realistic vehicle and if possible without having to modify Unreal Engine. The default driving model in UE is bad in one thing and that's the combined throttle/brake axis, namely the fact that even if apply 0.1 of braking, the vehicle goes on full brake and I haven't found a work around this (other than modifying UE).
My second idea was to interact with PhysX (which handles throttle and brake separately) directly bypassing Vehicle Movement Component, but once again haven't found a way to acess PhysX from game code.
My latest idea was to apply forces directly to wheels, which doesn't work as well. But I'm not sure if i'm doing it the right way.
owner is Vehicle Pawn. I also tried to apply each axis separate, but still no efect. The wheels don't spin even in the air. So if anyone can tell what I'm doing wrong, or any hint how to make my previous ideas work, would be greatly appreciated. I mean, 3 beers if I ever meet you in person :)
Jan aka ENiKS,
asked Mar 18 '15 at 11:17 AM in C++ Programming
You need a lot more torque power than 300.
Try going for 50000000.0f.
answered Mar 29 '15 at 08:43 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here