Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/t/w/TwistedBot-HEAD/twistedbot/botentity.py   TwistedBot(Download)
    def turn_to_direction(self, b_obj, x, y, z):
        if x == 0 and z == 0:
            return
        yaw, pitch = utils.vector_to_yaw_pitch(x, y, z)
        b_obj.yaw = yaw
    def turn_to_vector(self, b_obj, vect):
        if vect.x == 0 and vect.z == 0:
            return
        yaw, pitch = utils.vector_to_yaw_pitch(vect.x, vect.y, vect.z)
        b_obj.yaw = yaw