UPDATE :
removed unknown purpose task named ‘shadowCollisionLoop’
UPDATE :
better implementation for tasks
EDIT :
fixed minor bug which should never happen on normal use
really intresting, panda3d should have some mechanism like this to automatically do pause/resume,
it has nodes/names for everything, it shouldn’t be that hard to do.
Maybe make it multiply infinity by infinity to freeze everything and then stop the operation.
inf * inf is a clearly defined floating-point operation:
>>> inf = float("inf")
>>> print inf * inf
inf