far
far
gets/sets the camera's far clip distance
Type: float
Sample Code
###### get camera far clip distance
# get the current scene
scene = GameLogic.getCurrentScene()
# get the active camera
cam = scene.active_camera
# get far clipping distance
farClip = cam.far
###### set camera far clip distance
# get the current scene
scene = GameLogic.getCurrentScene()
# get the active camera
cam = scene.active_camera
# set the clipping distance to 500
cam.far = 500.0
|