getWorldToCamera
getWorldToCamera()
Returns the world to camera transform (which is the inverse matrix of
the camera to world transform)
Return type: 4x4 matrix.
Sample
Code
# get the current scene
scene = GameLogic.getCurrentScene()
# get the active camera
cam = scene.active_camera
# get transform
transform = cam.getWorldToCamera()
|