Народ помогите, почему шарик проходит мимо? Вот код
Graphics3D 1280,1024,16,3
SetBuffer BackBuffer()
Const typeshar=1,typecub=2
sndWave=LoadSound("Music.mp3")
LoopSound sndWave
PlaySound sndWave
lit=CreateLight()
shar=CreateSphere()
PositionEntity shar,-25,0,15
EntityType shar,tupeshar
texshar=LoadTexture("shar.jpg")
EntityTexture shar,texshar
cam=CreateCamera()
PositionEntity cam,0,40,0
TurnEntity cam,90,0,0
pln=CreatePlane()
tex=LoadTexture("zemla.jpg")
ScaleTexture tex,10,10
EntityTexture pln,tex
n=20
For i=0 To n Step 5
cub=CreateCube()
PositionEntity cub,0,0,i
Next
EntityType cub,tupecub
Collisions Typeshar,Typecub,2,1
Repeat
If KeyDown(200) MoveEntity shar,0,0,.1
If KeyDown(208) MoveEntity shar,0,0,-.1
If KeyDown(205) MoveEntity shar,.1,0,0
If KeyDown(203) MoveEntity shar,-.1,0,0
UpdateWorld
RenderWorld
Flip
Until KeyHit(1)
End