position
position
gets/sets the position where the sound comes from.
Type: list [ x, y, z] world coordinates
Sample
Code
################## Get position
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named slam
act = controller.actuators["slam"]
# get position
pos = act.position
################## Set position
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named slam
act = controller.actuators["slam"]
# set position
act.position = (1.9, 8.0, 3.0)
|