damping
damping
gets/sets the number of frames used to reach the target velocity
Type: integer
Range: 0 - 1000
Sample
Code
################## Get damping
# get the controller
controller = GameLogic.getCurrentController()
# get the object actuator attached to the controller
named act
actMotion = controller.actuators["act"]
# get damping
damp = actMotion.damping
################## Set damping
# get the controller
controller = GameLogic.getCurrentController()
# get the object actuator attached to the controller
named act
actMotion = controller.actuators["act"]
# set damping
actMotion.damping = 10
|