Actor* addAxis3() { Actor* actor = new Actor; TransformComponent* trans = new TransformComponent(); trans->setPos(vec3(-5, 0, 5)); Rotation rot; rot.setNormalDirection(vec3(1, 0, 0)); trans->setRotation(rot); actor->addComponent(trans); MeshGraphicComponent* mesh = new MeshGraphicComponent(AssetManager::getBasePath() + "Data/Model/axis.obj"); Material *mat = new Material(); mat->setDiffuse("#FF0000"); mesh->addMaterial(mat); Material *mat1 = new Material(); mat1->setDiffuse("#00FF00"); mesh->addMaterial(mat1); mesh->addMaterial(mat1); Material *mat2 = new Material(); mat2->setDiffuse("#0000FF"); mesh->addMaterial(mat2); actor->addComponent(mesh); return actor; }