Game Object: linVelocityMin

linVelocityMin
  • gets/sets the object's minimum linear velocity.

Type:

  • float number
Sample Code

################## get the min linear velocity allowed
  
# import bge
import bge

# get controller
cont = bge.logic.getCurrentController()

# get object that controller is attached to
obj = cont.owner

# get min linear velocity
minLinVel = obj.linVelocityMin

Sample Code

################## set the min linear velocity allowed
  
# import bge
import bge

# get controller
cont = bge.logic.getCurrentController()

# get object that controller is attached to
obj = cont.owner

# set min linear velocity
obj.linVelocityMin = 0.01