dongju.jeong Posted March 25, 2021 Share Posted March 25, 2021 (edited) he object disappears when the Clamp mode is changed. The setTerrainIntersecionMask() function and GlobalTerrain's mask are matched equally. What did I miss? //---------------------------------------- When clamp mode is activated, the object is placed much above the terrain height.Intersections seem to work. But the figures are not normal. bandicam 2021-03-25 15-34-23-107.mp4 Edited March 25, 2021 by dongju.jeong Link to comment
cash-metall Posted March 25, 2021 Share Posted March 25, 2021 Hello! we fixed the work of clamp in accordance with the CIGI_ICD when clamping, the altitude is not ignored, but is calculated from terrain level. you can switch the clamp algorithm to the old mode for compatibility // in AppSystemLogic::init_ig ig_manager->setGroundClampHeightMode(CLAMP_HEIGHT_MODE::IGNORE); 1 Link to comment
dongju.jeong Posted March 25, 2021 Author Share Posted March 25, 2021 ig_manager->setGroundClampHeightMode(CLAMP_HEIGHT_MODE::IGNORE); setGroundClampHeightMode function is Entity class's function. Is there any way to apply it collectively? Link to comment
cash-metall Posted March 25, 2021 Share Posted March 25, 2021 my mistake. Yes exactly. this is a method of the Entity class. there is no way to set this mode globally. you can modify this mode by adding a callback ig_manager->addOnCreateEntityCallback 1 Link to comment
dongju.jeong Posted March 26, 2021 Author Share Posted March 26, 2021 AppWorldLogic::init() { An error occurs where the "entity" object is used. Am I using the wrong function? Link to comment
cash-metall Posted March 26, 2021 Share Posted March 26, 2021 Sorry, we messed up the signatures please use the workround: void AppWorldLogic::HeightMode() { Vector<IG::Entity *> entities; IG::Manager::get()->getEntities(entities); for (auto & entity : entities) { if (entity->getType() == 1015) { entity->setGroundClampHeightMode(IG::Entity::CLAMP_HEIGHT_MODE::IGNORE); } } } we fix this bug in 2.14.0.0 1 Link to comment
Recommended Posts