from panda3d.core import * def handle_join_game(packet, g): print('Connected.') print(packet) g.info = packet def handle_block_change(packet, g): print('block change:') print(packet) def handle_position_and_look(packet, g): print('pos and look:') print(packet) p = LPoint3f(x=packet.x, y=packet.y, z=packet.z) g.pos = p