Game Object: angularVelocityMin

angularVelocityMin
  • Get/set the object's minimum allowed angular velocity

Type:

  • float number
Range:
  • 0.00 to 57,295.78 degrees
Note:
  • Physics Type: Rigid Body and Dynamic
     
  • Sets the same minimum angular velocity for all of the axis
Sample Code

################## get the game object's angular velocity min
 
# import bge
import bge

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

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

# get the angular Velocity min
angVel = obj.angularVelocityMin

Sample Code

################## set the game object's angular velocity min
 
# 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 velocity
obj.angularVelocity = [ 0.0, 0.0, 10.0]

# set the game object's angular velocity min
obj.angularVelocityMin = 1.0