Verlet physics applied to a simple car model.

Blitz3D Forums/Blitz3D Programming/Verlet physics applied to a simple car model.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The following is in the DoVerlet function, near the middle.

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