near
near
gets/sets the camera's near clip distance
Type: float
Sample Code
###### get camera's near clipping distance
# get the current scene
scene = GameLogic.getCurrentScene()
# get the active camera
cam = scene.active_camera
# get near clipping distance
nearClip = cam.near
###### set the camera's near clipping distance
# get the current scene
scene = GameLogic.getCurrentScene()
# get the active camera
cam = scene.active_camera
# set the clipping distance to 5
cam.near = 5.0
|