dongju.jeong Posted April 16, 2020 Posted April 16, 2020 (edited) When an entity is first created through ig_manager, the function does not work in the same frame. sample->getNode()->setWorldPosition(Math::Vec3(-4.62241, -6.44629, 12.84174)); // It works if it exists after the frame. However, functions related to the IEntity class do not work even if after frame. 2.9 version Edited April 16, 2020 by dongju.jeong
cash-metall Posted April 17, 2020 Posted April 17, 2020 Hello dongju! you need turn off interpolation for work with entity transformation directly without cigi. IG::IEntity * sample = AppSystemLogic::ig_manager->getEntity(222); sample->setType(200); sample->setInterpolation(0); // <== turn off interpolation sample->setCollision(1); sample->setRotationEuler(Unigine::Math::vec3(89, 0, 0)); sample->setGeoPosition(AppSystemLogic::ig_manager->getConverter()->worldToGeodetic(Unigine::Math::Vec3(0, 3, 1500))); 1
Recommended Posts