Game Object: restoreDynamics

restoreDynamics()
  • Restores a game object's dynamics after they have been suspended.
Note:
  • The object's linear velocity will be also be restored.
     
  • Use suspendDynamics() to suspend the game object's dynamics
Sample Code

################### restore the game object's dynamics
  
# import bge
import bge

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

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

# restore dynamics that were suspended with suspendDynamics()
obj.restoreDynamics()