Game Object: angularDamping

angularDamping
  • Get/set the game object's angular damping

Type:
  • float number
Range:
  • 0.00 (min) to 1.0 (max)
Note:
  • Physics Type: Rigid Body and Dynamic
    • Properties menu >> Physics button >> Physics >> Physics Type
  • Angular Damping settings
    • Properties menu >> Physics button >> Physics >> Damping >> Rotation
Sample Code

################## get the game object's angular damping

# import bge
import bge

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

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

# get the angular damping
damp = obj.angularDamping

Sample Code

################## set the game object's angular 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 angular damping
obj.angularDamping = 0.9