The following is in the DoVerlet function, near the middle.
Question
Should it be?:
Question
If name\v[count]\part = REAR_TIRE Then temp_slip#= wheel_force(name.vobject, count,1.5,1.9) debugX2=temp_slip# tempvmx = tempvmx - ((tempvoldx * temp_slip) + (tempvax * (DeltaTime * DeltaTime))) + (temptempx * temp_slip) Else temp_slip#= wheel_force(name.vobject, count,.9,1.2) debugX3=temp_slip# tempvmx = tempvmx - ((tempvoldx * temp_slip) + (tempvax * (DeltaTime * DeltaTime))) + (temptempx * temp_slip) End If
Should it be?:
If name\v[count]\part = REAR_TIRE Then temp_slip#= wheel_force(name.vobject, count,1.5,1.9) debugX2=temp_slip# tempvmx = tempvmx - ((tempvoldx * temp_slip) + (tempvax * (DeltaTime * DeltaTime))) + (temptempx * temp_slip) Else if name\v[count]\part = FRONT_TIRE Then temp_slip#= wheel_force(name.vobject, count,.9,1.2) debugX3=temp_slip# tempvmx = tempvmx - ((tempvoldx * temp_slip) + (tempvax * (DeltaTime * DeltaTime))) + (temptempx * temp_slip) End If End If