projection_matrix
projection_matrix
gets/sets camera's 4x4 projection matrix
Type: 4 x 4 matrix
Sample Code
###### get the camera's projection matrix
# get the current scene
scene = GameLogic.getCurrentScene()
# get the active camera
cam = scene.active_camera
# get projection matrix
matrix = cam.projection_matrix
###### set the camera's projection matrix
# get the current scene
scene = GameLogic.getCurrentScene()
# get the active camera
cam = scene.active_camera
# your four by four matrix
matrix = [ your four by four matrix here]
# set projection matrix
cam.projection_matrix = matrix
|