Game Object: disableRigidBody

disableRigidBody()
  • Turns off rigid body for that game object.
Note:
  • Object type: Dynamic and Rigid Body
Sample Code

################## disable rigid body
  

# import bge
import bge

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

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

# disable rigid body
obj.disableRigidBody()