i was messing around, and i found i must be doing something wrong. i keep looking at it , but it looks ok to me.. i need fresh eyes please.
Graphics3D 800,600,0,2 SetBuffer BackBuffer() cam=CreateCamera() PositionEntity cam,0,10,20 cube1=CreateCube() EntityType cube1,1 EntityColor cube1,255,0,0 ball=CreateSphere() bx#=10 EntityType ball,2 ScaleEntity ball,1.2,1.2,1.2 EntityColor ball,0,0,255 light=CreateLight(cam) PositionEntity light,0,10,20 PointEntity cam,cube1 PointEntity light,cube1 Collisions 1,2,3,1 While Not KeyHit(1) Cls If KeyDown(205) Then bx#=bx#-0.1 If KeyDown(203) Then bx#=bx#+0.1 PositionEntity ball,bx#,0,0 UpdateWorld RenderWorld If EntityCollided(ball,cube1)Then Text 0,0,"collision" Flip Wend End