useXY
useXY
gets/sets the axis this actuator is tracking.
Return type: bool
1 = True = X axis
0 = False = Y axis
Sample
Code
################## Get useXY
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
actCam = controller.actuators["act"]
# get axis actuator is tracking
axisTracking = actCam.useXY
################## Set useXY
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
actCam = controller.actuators["act"]
# set axis actuator tracking to x-axis
actCam.useXY = True
|