use3D
use3D
gets/sets whether or not it tracks on all 3 axis. (2D or 3D)
Type: Bool
1 = True (3D)
0 = False (2D)
Sample
Code
#################### Get use3D
# get controller
controller = GameLogic.getCurrentController()
# get actuator attached to the controller named RaceCam
act = controller.actuators["RaceCam"]
# Tracking in 3D?
threeDim = act.use3D
#################### Set use3D
# get controller
controller = GameLogic.getCurrentController()
# get actuator attached to the controller named RaceCam
act = controller.actuators["RaceCam"]
# Track in 3D
act.use3D = True
|