(self)
This resets the world to its initial state
This resets the world to its initial state
This resets the world to its initial state
def reset_world(self):
        """ This resets the world to its initial state"""
        self.world.ClearForces()
        self.body.position = self.initial_position
        self.body.angle = self.initial_angle
        self.body.angularVelocity = self.initial_angular_velocity
        self.body.linearVelocity = self.initial_linear_velocity
def reset_world ( self ) : self . world . ClearForces ( ) self . body . position = self . initial_position self . body . angle = self . initial_angle self . body . angularVelocity = self . initial_angular_velocity self . body . linearVelocity = self . initial_linear_velocity