def thruster_on(cls): ent = EntityManager.get_by_id(0) ent["acc"][0] = 100.0 * math.cos(ent["rot"]) ent["acc"][1] = 100.0 * math.sin(ent["rot"]) ps = Factory.create_process(1.0, "emit_particle", {"entity_id": 0}) process = GameState.get_value("process") process.append(ps) ent["thruster_process_id"] = len(process) - 1