Beispiel #1
0
def thing_move_read(state):
    thing = {}
    text = None
    with open("/".join([state["things_dir"], state["thing_name"]])) as f:
        text = f.read()
    map = json.loads(text)
    geometry = state["geometries"][map["geometry_name"]]
    thing = thing_new(new_id(state), "Object", map["position"], map["rotates"], [], geometry, map["bounds"])
    return thing
Beispiel #2
0
def thing_move_read(state):
    thing = {}
    text = None
    with open("/".join([state["things_dir"], state["thing_name"]])) as f:
        text = f.read()
    map = json.loads(text)
    geometry = state["geometries"][map["geometry_name"]]
    thing = thing_new(new_id(state), "Object", map["position"], map["rotates"],
                      [], geometry, map["bounds"])
    return thing
Beispiel #3
0
def new_world(state):
    world = {}
    world = thing_new(new_id(state), "World", [0.0, 0.0, 0.0], [], [], None)
    return world
Beispiel #4
0
def new_world(state):
    world = {}
    world = thing_new(new_id(state), "World", [0.0, 0.0, 0.0], [], [], None)
    return world