linVelocityMax
linVelocityMax
gets/sets
the object's maximum linear velocity
Type: float
Sample Code
################# Get linVelocityMax
# get the controller
controller = GameLogic.getCurrentController()
# get the game object that the controller is attached
to.
obj = controller.owner
# get max linear velocity
maxLinVel = obj.linVelocityMax
################# Set linVelocityMax
# get the controller
controller = GameLogic.getCurrentController()
# get the game object that the controller is attached
to.
obj = controller.owner
# set max linear velocity
obj.linVelocityMax = 35.7
|