Game Object: angularVelocityMax

angularVelocityMax
  • Get/set the object's maximum allowed angular velocity

Type:

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

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

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

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

# get the angular Velocity max
angVel = obj.angularVelocityMax

Sample Code

################## set the game object's angular velocity max
 
# 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 max
obj.angularVelocityMax = 5.0