Here's an example:
;An Example of Gravity:
Graphics3D 640,480,16,1
Collisions 1,2,2,2
Cam=CreateCamera()
EntityType cam,1
PositionEntity cam,0,9,0
CameraClsColor cam,0,255,255
ground=CreateCube()
ScaleEntity ground,5,1,5
EntityType ground,2
While Not KeyHit(1)
If Not EntityCollided(cam,2)
TranslateEntity cam,0,-0.1,0
EndIf
UpdateWorld
RenderWorld
Flip
Wend
End
-me
;An Example of Gravity:
Graphics3D 640,480,16,1
Collisions 1,2,2,2
Cam=CreateCamera()
EntityType cam,1
PositionEntity cam,0,9,0
CameraClsColor cam,0,255,255
ground=CreateCube()
ScaleEntity ground,5,1,5
EntityType ground,2
While Not KeyHit(1)
If Not EntityCollided(cam,2)
TranslateEntity cam,0,-0.1,0
EndIf
UpdateWorld
RenderWorld
Flip
Wend
End
-me