• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Code Help me stop the sliding

Deeival

Grizzled Veteran
Sep 4, 2006
674
1
I managed to attach semi working wheels to the flying clowncar using the following variables and some other code.

Code:
WheelSoftness=0.025000
WheelPenScale=1.200000
WhelPenOffset=0.010000
WheelRestitution=0.100000
WheelInertia=0.100000	
WheelLongFrictionFunc=(Points=(,(InVal=100.000000,OutVal=1.000000),(InVal=200.000000,OutVal=0.900000),(InVal=10000000000.000000,OutVal=0.900000)))
WheelLongSlip=0.001000	
WheelLatSlipFunc=(Points=(,(InVal=30.000000,OutVal=0.009000),(InVal=45.000000),(InVal=10000000000.000000)))
WheelLongFrictionScale=1.100000
WheelLatFrictionScale=1.55
WheelHandbrakeSlip=0.010000
WheelHandbrakeFriction=0.100000
WheelSuspensionTravel=10.000000
WheelSuspensionMaxRenderTravel=5.000000

The problem I got now is that the cars are just sliding around (like on ice). With changing the above variables I was able to affect the amount of sliding, but I could not stop it.
So maybe someone could hit me to the right values or tell me what function in the vehicle code makes cars stop from sliding.
 
I managed to attach semi working wheels to the flying clowncar using the following variables and some other code.

Code:
WheelSoftness=0.025000
WheelPenScale=1.200000
WhelPenOffset=0.010000
WheelRestitution=0.100000
WheelInertia=0.100000    
WheelLongFrictionFunc=(Points=(,(InVal=100.000000,OutVal=1.000000),(InVal=200.000000,OutVal=0.900000),(InVal=10000000000.000000,OutVal=0.900000)))
WheelLongSlip=0.001000    
WheelLatSlipFunc=(Points=(,(InVal=30.000000,OutVal=0.009000),(InVal=45.000000),(InVal=10000000000.000000)))
WheelLongFrictionScale=1.100000
WheelLatFrictionScale=1.55
WheelHandbrakeSlip=0.010000
WheelHandbrakeFriction=0.100000
WheelSuspensionTravel=10.000000
WheelSuspensionMaxRenderTravel=5.000000
The problem I got now is that the cars are just sliding around (like on ice). With changing the above variables I was able to affect the amount of sliding, but I could not stop it.
So maybe someone could hit me to the right values or tell me what function in the vehicle code makes cars stop from sliding.


Hopfully im wrong here as I would like to trudle around in one on arad, say, and just as the tiger tank fires, go airborne, rise up and dive bomb it. At the last moment, jump out and drop a satchel on its engine deck. BOOM! :D

I think the problem might be that you subclassed ROPlaneCraft, or similar, and the physics engine treats Flying, Hovering, Tracked and Wheeled craft with separate code. I dont think you can change between them.
 
Upvote 0
I think the problem might be that you subclassed ROPlaneCraft, or similar, and the physics engine treats Flying, Hovering, Tracked and Wheeled craft with separate code. I dont think you can change between them.

not to mention the ROPlanecraft is a buggy mess.

that's why abandoned it.

There are flying clowncars that use the choppercraft to much more effect.
 
Upvote 0