Page 1 of 1

Dynamic floor

Posted: Tue Sep 07, 2021 9:01 pm
by Eksander
Is it possible to change the floor during runtime using a series of .png files?

I see that the foraging example uses GetFloorColor to update the floor, but it is not the simplest solution in my case.

Thanks!

Re: Dynamic floor

Posted: Tue Sep 07, 2021 9:12 pm
by pincy
You could remove the floor entity with CLoopFunctions::RemoveEntity(), then create a new CFloorEntity() and add it with CLoopFunctions::AddEntity(), and finally use CSimulator::SetFloorEntity() to make ARGoS aware of it.