Jump to content

Multi tiles world


Recommended Posts

Hello, i was wondering how it would be handle properly when a game has multi tiles and as the player moves towards a New terrain in a tile a New scene is loaded.

The problem is that when a scene is unloaded and there were objects with rigidbody as Stones, enemies snd all sort of game objects, they fallen through the terrain.


How could this be avoided. I can think of a script dissabling gravity in the objects from the unloaded terrain, but how would you recomend to do it?

Thank you

Link to comment
Share on other sites

Hi @Gustavo, a script is indeed the way to solve it, please take a look at the script "RigidBodyWaitForTerrainLoad.cs" that comes with Gaia - it does just that, you can attach it to objects where the rigidbody needs to be disabled until the terrain is loaded in underneath. The script is described briefly as well in the documentation for Terrain Loading in Gaia, please see here under "preventing the player from falling through the terrain":


Link to comment
Share on other sites

Thank you! I will check the code.

Nevertheless, i think this should have been solved in gaia or sectr. If not how you avoid to fall in all the game objects that have rigidbodies?

I mean you go to a different sector or terrain and then come back to previous terrain or sector and all the game objects dissapear?? 

Thank for your help!

Link to comment
Share on other sites

Surely the object gave colliders, but if there is no terrain to collide, the object will certsinly fall.

Link to comment
Share on other sites

Thats true, but it depends on how far the object is going. 
Neighbor loader should have the surrounding terrains loaded in so moving from one terrain to the next should be fine. 

I could see that you need to write a script to save position, and when the terrain loads in load that object back in for dynamic objects. More than likely this would be the case. 


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

  • Create New...