rotDamp
rotDamp
Note:
Distance Constraint only.
gets/sets the frames to use for damping the game object rotation.
Return type: integer
Sample Code
#################### Get rayLength
# get the controller
controller = GameLogic.getCurrentController()
# get the constraint actuator attached to the
controller named act
act = controller.actuators["act"]
# get the distance constraint rotation damping
rotDamp = act.rotDamp
#################### Set rayLength
# get the controller
controller = GameLogic.getCurrentController()
# get the constraint actuator attached to the
controller named act
act = controller.actuators["act"]
# set the rotation damping
act.rotDamp = 2
|