Swampdonkey Posted February 25, 2010 Share Posted February 25, 2010 A question about Freeworld(world). My apps starts up code consists of making several pivots for the cameras and what not.. Does calling freeworld() remove all these helper entities I created outside of the actual scene node being loaded? For example if i create a camerapivot then call myWorld=loadscene() then later on freeworld(myWorld) does my camerapivots or any other help entites i created get wiped as well? Also does manually freeing entities as a map is running effect the freeworld() command at all? Im getting a flury of crashes when calling freeworld() Quote <-- gothasoft.com --> Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 25, 2010 Share Posted February 25, 2010 In my experience the pivots are deleted since they are part of that world. This often results in camera and player controls no longer working. You could make the pivots part of a group. Instead of freeing the world go through every entity and delete all object that are not a memeber of that group. Quote Link to comment Share on other sites More sharing options...
Swampdonkey Posted February 25, 2010 Author Share Posted February 25, 2010 Hi Aggror, Considered doing that but how will this effect the outcome of loading a new world scene into memory? Continuing my search but just off hand is there way to return the worldID of a given entity? Quote <-- gothasoft.com --> Link to comment Share on other sites More sharing options...
VicToMeyeZR Posted February 25, 2010 Share Posted February 25, 2010 You could create those helpers in your own class or function, and then just call them again, as soon as the free world is called. Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD Link to comment Share on other sites More sharing options...
Swampdonkey Posted February 25, 2010 Author Share Posted February 25, 2010 My bad, just completely misunderstand how the scene and world commands handle stuff.. I was thinking scene loading was the world but it's not.. All is good. ty for the advice. Quote <-- gothasoft.com --> Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.