damp
damp
gets/sets the number of frames to use for damping of the constraint.
Note:
Not used by Constraint
Type: Force field
Type: integer
Sample
Code
#################### Get damp
# get the controller
controller = GameLogic.getCurrentController()
# get the constraint actuator attached to the
controller named act
act = controller.actuators["act"]
# get the number of frames to damp
damp = act.damp
#################### Set damp
# get the controller
controller = GameLogic.getCurrentController()
# get the constraint actuator attached to the
controller named act
act = controller.actuators["act"]
# set the number of frames to damp
act.damp = 2
|