main class functions as tasks

i have a main class called world that creates all my nodes, loads lights, etc etc, but it also has its own functions that need to be run every step like a task… i cant change the functions to def name(task) becase i need it to be def name(self) for it to work… im confused

wait never mind, i got it.

i needed to name my function

def updateCam(self,task)

and add the task by doing:

taskMgr.add(self.updateCam,"updateCameraTask")