def METHOD_NAME(self,world):
    """Begins the path saving with the given WorldModel or Simulator"""
    if isinstance(world,Simulator):
        self.sim = world
        self.world = world.world
        self.last_t = world.getTime()
    else:
        self.sim = None
        self.world = world
    self.scene = robotsim.ThreeJSGetScene(self.world)