[posila] [2.0.28] LuaRenderObjects with a robot as target follow the "real robot", not the rendered one.
Posted: Tue Dec 31, 2024 11:48 am
As per FFF-421, the robot that is drawn is not their actual location, but their predicted one.
A LuaRenderObject with a robot as target still follows the "real robot" instead of the rendered one, making it seems like it lags behind.
Suggestion is to have LuaRenderingObjects follow the rendered bot.
A LuaRenderObject with a robot as target still follows the "real robot" instead of the rendered one, making it seems like it lags behind.
Suggestion is to have LuaRenderingObjects follow the rendered bot.
Code: Select all
/c local robot = game.player.surface.create_entity{name="logistic-robot", force=game.player.force, position=game.player.position}
rendering.draw_circle{surface=robot.surface, target=robot, width=2, color={1,1,1}, radius=1}