After creating object with createInstance, I want change its location. But I seem to fail. In the past answers, it say to use setloc(), but it is deprecated now, and I don't know what to use as replacement to that API. What api should I use? My code looks like below
string lib_name = "?" + strObj; obj_3d = createinstance(library().find(lib_name),model()); obj_3d.name = strObjName; double loc_x = tb[i][3]; double loc_y = tb[i][4]; double loc_z = tb[i][5]; Vec3 vec = [loc_x, loc_y, loc_z]; obj_3d.location = vec;
I also tried setLocation() but that didn't work either...