
getCameraToWorld()
- Returns the camera to world transform
- 4x4 matrix.

Sample Code
####################### get the camera to world transform
# import bge
import bge
# get current scene
scene = bge.logic.getCurrentScene()
# get a list of the cameras
camList = scene.cameras
# get camera
# my camera is named security_cam
cam = camList["security_cam"]
# get the camera to world transform for the camera
transform = cam.getCameraToWorld()