1. Set your GridClient object's .Settings.MULTIPLE_SIMS property to true.
2. Add a Network.OnSimConnected callback
3. In the OnSimConnected callback print the value of the Simulator.Handle the callback returns to you.
You'll notice that the region that you're a root agent in, returns the proper regionhandle. The sims that you're a child agent in return 0 for region handle.
1. Set your GridClient object's .Settings.MULTIPLE_SIMS property to true.
2. Add a Network.OnSimConnected callback
3. In the OnSimConnected callback print the value of the Simulator.Handle the callback returns to you.
You'll notice that the region that you're a root agent in, returns the proper regionhandle. The sims that you're a child agent in return 0 for region handle.
When .Settings.MULTIPLE_SIMS = true;, LibOMV will connect to multiple regions, however, in the OnSimulatorConnected Callback, it passes in a Simulator object with a Handle property that's 0 for child regions.
This makes it impossible to tell where this sim is relative to other sims that you have.
Expected behavior:
Simulator object returns the proper region handle for the region that it's connected to regardless of agent status (root/child)
Description
When .Settings.MULTIPLE_SIMS = true;, LibOMV will connect to multiple regions, however, in the OnSimulatorConnected Callback, it passes in a Simulator object with a Handle property that's 0 for child regions.
This makes it impossible to tell where this sim is relative to other sims that you have.
Expected behavior:
Simulator object returns the proper region handle for the region that it's connected to regardless of agent status (root/child)