Did I find the right examples for you? yes no

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

src/t/w/TwistedBot-HEAD/twistedbot/behavior_tree.py   TwistedBot(Download)
    def on_start(self):
        player_look_vector = utils.yaw_pitch_to_vector(self.player.yaw, self.player.pitch)
        looking_at_block = self.blackboard.grid_raycast_to_block(self.player.position_eyelevel, player_look_vector)
        if self.blackboard.last_look_at_block != looking_at_block:
            self.blackboard.last_look_at_block = looking_at_block