@Alpha Zero Productions - Sure. I was just dinking around, so this probably isn't the most effecient way to do it...but here's the code:
First off, make the following variable under MaxSteeringAngle#:
MaxSteeringAngle2# =-35.0 - ((vel#/100.0)*35.0)
Second, modify the user input:
if keystate(32)
STEERING = 1
inc steerangle#, 360.0 * time#
if steerangle# > MaxSteeringAngle# then steerangle# = MaxSteeringAngle#
inc steerangle2#, 360.0 * time#
if steerangle2# > MaxSteeringAngle2# then steerangle2# = MaxSteeringAngle2#
endif
if keystate(30)
STEERING = 1
dec steerangle#, 360.0 * time#
if steerangle# < -MaxSteeringAngle# then steerangle# = -MaxSteeringAngle#
inc steerangle2#, 360.0 * time#
if steerangle2# > -MaxSteeringAngle2# then steerangle2# = -MaxSteeringAngle2#
endif
if STEERING = 0
steerangle# = steerangle# * 0.25
steerangle2# = steerangle# * 0.25
endif
Thirdly, make sure the tires rotate correctly:
for i=1 to 4
NDB_VehicleTireSetTorque VehicleJoint, Wheels(i), torque#
if i < 2
NDB_VehicleTireSetSteeringAngle VehicleJoint, Wheels(i), steerangle2#
endif
if i > 2
NDB_VehicleTireSetSteeringAngle VehicleJoint, Wheels(i), steerangle#
endif
if BRAKES then NDB_VehicleTireBrakesOn VehicleJoint, Wheels(i)
text 10+(i*100),420,"Tire "+str$(i) + " Omega:"+str$(NDB_NewtonVehicleTireGetOmega(VehicleJoint, Wheels(i)))
text 20+(i*100),430,"Load:"+str$(NDB_NewtonVehicleTireGetNormalLoad( VehicleJoint, Wheels(i) ) )
next i
It's really simple, and I'm sure there are even simpler ways to do it. I was just messing around. More or less, it's just making sure that the back tires turn the opposite of the front tires. BTW, this code is just a basic modification of the Vehicle Demo. If you have your own code, just make sure you turn the back tires the opposite of what you are currently turning your front tires.
"If you are wise, you will fear me. If you need me, I'll be playing with my teddy bear." - Garfield