useIpoAsForce
useIpoAsForce
gets/sets if Ipo is being used as Force instead of displacement.
Type: Bool
1 = True
0 = False
Sample
Code
################ Get useIpoAsForce
# get controller
controller = GameLogic.getCurrentController()
# get ipo actuator attached to the controller
named WalkCycle
act = controller.actuators["WalkCycle"]
# using Ipo as force?
force = act.useIpoAsForce
################ Set useIpoAsForce
# get controller
controller = GameLogic.getCurrentController()
# get ipo actuator attached to the controller
named WalkCycle
act = controller.actuators["WalkCycle"]
# use Ipo as force
act.useIpoAsForce = True
|