
linearDamping
- Get/set the game object's linear damping
- float number
- 0.00 (min) to 1.0 (max)
Note:
- Physics Type: Rigid Body and Dynamic
- Properties menu >> Physics button >> Physics >> Physics Type
- Linear Damping settings
- Properties menu >> Physics button >> Physics >> Damping >> Translation

Sample Code
################## get the game object's linear damping
# import bge
import bge
# get controller
cont = bge.logic.getCurrentController()
# get object that controller is attached to
obj = cont.owner
# get the linear damping
damp = obj.linearDamping
Sample Code
################## set the game object's linear damping
# import bge
import bge
# get controller
cont = bge.logic.getCurrentController()
# get object that controller is attached to
obj = cont.owner
# set the game object's linear damping
obj.linearDamping = 0.9