I am working on an RTS game. I have all of my objects organized on layers and I use python scripts to insert them to the visible layer of the scene during runtime.
I will explain my issue with a tree object:
I have few trees on my visible layer before I start the game, so they are visible at the start. When I start the game, I use keyboard to add some more, but the new ones do not have shadow/light rendered when they are added.
Along with that, the biggest issue that I have is that the navigation mesh, which I use for my characters, works for those trees which were placed before game started, but does not work on trees which were added during runtime.
I use scene.addObject(object, object, 0) to add my objects to the scene during runtime. Is there something else I should do for each object so they would have the same effect to the game as the objects which existed before game start?
Thanks in advance