Hi
python is not necessary , because if you want use a cube as collision you cannot using python which can simulate only a sphere.
anyway add two plane(static as default) with the right dimension and in the right space , a bit more hight respect to the ground
atttach to them:
2 sensors Collision(one for plane) (named T1 and T2 with a property “player”)(player have to be a property “player”)
attach this sensor to a python controller
add 2 cameras , name it camT1, and camT2 , put it in the right space and with the right direction/orientation and right zooms/lens.
the script:
####################
import bge
logic=bge.logic
scene=logic.getCurrentScene()
cont=logic.getCurrentController()
obs=scene.objects
camT1=obs[“camT1”]
camT2=obs[“camT2”]
sensT1=cont.sensors[“T1”]
sensT2=cont.sensors[“T2”]
if sensT1.positive : scene.active_camera = camT1
if sensT2.positive : scene.active_camera = camT2
#######################
moving the player on the two plane…