Collision help :P

Blitz3D Forums/Blitz3D Programming/Collision help :P

im using the b3d demo to help me learn a bit of b3d before i buy it (if I do)
i want to see if its worth buying (for me at least)

im having problems with collision detecting, can someone please help me? it just doesnt detect collisions

AppTitle "Blitz Panzer"
Graphics3D 800,600,32,2
SetBuffer BackBuffer()

Global Pivot=CreatePivot()

Global Camera=CreateCamera(Pivot)
CameraRange Camera,1,5000
PositionEntity Camera,0,150,-250

Global Light=CreateLight()

Global Sherman_Hull=LoadMesh("models\sherman\hull.3ds",Pivot)
RotateEntity Sherman_Hull,270,270,0
EntityType Sherman_Hull,1
Global Sherman_Turret=LoadMesh("models\sherman\turret.3ds",Pivot)
RotateEntity Sherman_Turret,270,270,0

Global Terrain=LoadTerrain("hmap_1024.bmp")
EntityTexture Terrain,LoadTexture("lmap_256.bmp")
PositionEntity Terrain,-5000,-2000,-5000
ScaleEntity Terrain,160,6400,160
EntityType Terrain,2

Collisions 1,2,3,2

While Not KeyHit(1)
Update_Player()
UpdateWorld
RenderWorld
Text 0,0,CountCollisions(Sherman_Hull)
Flip
Wend
End

Function Update_Player()
If KeyDown(200)
MoveEntity Pivot,0,0,5
Else If KeyDown(208)
MoveEntity Pivot,0,0,-5
EndIf
If KeyDown(203)
TurnEntity Pivot,0,1,0
Else If KeyDown(205)
TurnEntity Pivot,0,-1,0
EndIf
If EntityCollided(Sherman_Hull,2)=False
MoveEntity Pivot,0,-25,0
EndIf
End Function

thank you :)