min
min
gets/sets the minimum distance to stay from the target.
Type: float
Sample
Code
################## Get min
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
actCam = controller.actuators["act"]
# get min camera distance
minDist = actCam.min
################## Set min
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
actCam = controller.actuators["act"]
# set min camera distance
actCam.min = 10.0
|