void TestApp::Run() { if (*mCore << "Config/T12.txt") { mCore->Lock(); // Create a model template ModelTemplate* temp = mCore->GetModelTemplate("Models/peasant.r5a"); // Create the 3 instances and position them, matching the previous tutorial's setup CreateNewInstance(temp, "Peasant 0", "First")->SetRelativePosition(Vector3f(0, 3, 0)); CreateNewInstance(temp, "Peasant 1", "Second")->SetRelativePosition(Vector3f(1, -2, 0)); CreateNewInstance(temp, "Peasant 2", "Third")->SetRelativePosition(Vector3f(-2, 1, 0)); mCore->Unlock(); while (mCore->Update()); //*mCore >> "Config/T12.txt"; } }