height
height
gets/sets the height the camera is set to stay above the target object.
Type: float
Sample
Code
################## Get height
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
actCam = controller.actuators["act"]
# get camera height
camHeight = actCam.height
################## Set height
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
actCam = controller.actuators["act"]
# set camera height
actCam.height = 4.5
|