Car movement in 3d

Blitz3D Forums/Blitz3D Beginners Area/Car movement in 3d

Hi to all! I'm trying to make a car movement where the wheels make is what make the path... i wan't to do something like this: http://venisproductions.com/games/drivers_ed/drivers_ed.html
Look my code... and please help me tks!!!

Graphics3D 640,480,16,2
SetBuffer BackBuffer()

camera = CreateCamera()
PositionEntity camera,0,5,-10
RotateEntity camera,30,0,0

pivo = CreatePivot()

roda1 = CreateSphere(10,pivo)
roda2 = CreateSphere(10,pivo)
ScaleEntity roda1,.5,1,1
ScaleEntity roda2,.5,1,1
PositionEntity roda1,-2,0,0
PositionEntity roda2,2,0,0

While Not KeyHit(1)
	
If KeyDown(203) And virando# < 30
virando# = virando# + 1
EndIf
	
If KeyDown(205) And virando# > -30
virando# = virando# - 1
EndIf

If KeyDown(200) And andando# < 3
andando# = andando# + 0.03
EndIf
	
If KeyDown(208) And andando# > -2
andando# = andando# - 0.03
EndIf
	
RotateEntity roda1,0,virando#,0
RotateEntity roda2,0,virando#,0
	
TurnEntity pivo,0,virando#,0
MoveEntity pivo,0,0,andando#
	
UpdateWorld
RenderWorld
Text 10,10,"Virando: "+virando#
Text 10,20,"Andando: "+andando#
Flip

Wend