You will need to work out where to position each matrix and make sure they are both at the same height where they join.
This code is a very simple version using 5 flat matrixes and tells you which matrix the camera is over.
make matrix 1,10,10,5,5
make matrix 2,10,10,5,5
make matrix 3,10,10,5,5
make matrix 4,10,10,5,5
make matrix 5,10,10,5,5
position matrix 2,-10,0,0
position matrix 3,0,0,10
position matrix 4,10,0,0
position matrix 5,0,0,-10
do
control camera using arrowkeys 0,0.1,1
`move camera up
if shiftkey() then position camera camera position x(),camera position y()+0.1,camera position z()
`move camera down
if controlkey() then position camera camera position x(),camera position y()-0.1,camera position z()
`check which matrix the camera is above.
above=-1
x# = camera position x() : z# = camera position z()
if x# => 0 and x# < 11
if z# => 0 and z# < 11 then above = 1
endif
if x# < 0 and x# >-11
if z# => 0 and z# < 11 then above = 2
endif
if x# => 0 and x# < 11
if z# => 10 then above = 3
endif
if x# => 10 and x# < 11
if z# =>0 and z# < 11 then above = 4
endif
if x => 0 and x# < 11
if z# <0 and z# > -11 then above = 5
endif
text 0,0,"Above matrix : "+str$(above)
loop
If you are going to be useing a lot of matrixes then you will need to code some sort of sytem to keep them all organised and linedup and also so you can check which matrixes you are abouve so you can find the ground height.