max
max
gets/sets the upper limit for this constraint.
Type: float number
Sample
Code
#################### Get max
# get the controller
controller = GameLogic.getCurrentController()
# get the constraint actuator attached to the
controller named act
act = controller.actuators["act"]
# get the upper limit
upperLimit = act.max
#################### Set max
# get the controller
controller = GameLogic.getCurrentController()
# get the constraint actuator attached to the
controller named act
act = controller.actuators["act"]
# set the upper limit
act.max = 2.5
|