useIpoLocal
useIpoLocal
gets/sets if force is applied with local or world coordinates.
Type: Bool
1 = True =
local coordinates
0 = False = world coordinates
Sample
Code
################ Get useIpoLocal
# get controller
controller = GameLogic.getCurrentController()
# get ipo actuator attached to the controller
named WalkCycle
act = controller.actuators["WalkCycle"]
# using local or world coordinates?
local = act.useIpoLocal
################ Set useIpoLocal
# get controller
controller = GameLogic.getCurrentController()
# get ipo actuator attached to the controller
named WalkCycle
act = controller.actuators["WalkCycle"]
# use local coordinates
act.useIpoLocal = True
|