linVelocityMin
linVelocityMin
gets/sets the object's minimum linear velocity
Type: float
Sample Code
############ Get linVelocityMin
# get the controller
controller = GameLogic.getCurrentController()
# get the game object that the controller is attached
to.
obj = controller.owner
# get min linear velocity
minLinVel = obj.linVelocityMin
############ Set linVelocityMin
# get the controller
controller = GameLogic.getCurrentController()
# get the game object that the controller is attached
to.
obj = controller.owner
# set min linear velocity
obj.linVelocityMin = 4.0
|