Here is a version with added Gamepad-controls:
UPBGE_0.3_Ball_joy.blend (1.1 MB)
Ball:
W A S D or Joystick-RightStick: move
SPACE or Joystick-RightStick-Button: jump
View:
Mouse or Arrow-Keys or Joystick-LeftStick or Joystick-Hat: Rotate view
Mousewheel or Page-up/Page-down or Joystick-Shoulders: Zoom
Middle Mousebutton or Home or Joystick-Button 1: Reset Zoom
F or Joystick-LeftStick-Button: Camera Follows Ball On/Off
Ball has 2 game properties
'Mouse_sensitivity':
Camera speed
'Keyboard_sensitivity':
Ball Speed
Objects with property "obstacle" will let the camera go beyond. (also the floor has this)
Objects with property "transparent" and suitable Material will go transparent when view is blocked.```