orientation
orientation
gets/sets the orientation of the sound.
Type:
3x3 Rotation matrix
Sample
Code
################# Get orientation
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named slam
act = controller.actuators["slam"]
# get sound orientation
orient = act.orientation
################# Set orientation
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named slam
act = controller.actuators["slam"]
# set sound orientation
act.orientation = (1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0,
0.0, 1.0)
|