Home | Tutorials | Wiki | Issues
Ask Your Question
0

Is it possible to modularize world files?

asked 2018-10-29 10:00:11 -0500

kumpakri gravatar image

It would be useful if I could define kind of basic world in one file and then include this world file in other world files that would add different models and configuration to the simulation. Is there any way how to do that?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-10-29 12:55:15 -0500

chapulina gravatar image

There isn't yet a way to include a file into another through an <include> tag for example, just like it's done for models.

One thing which we've done in the past is to use embedded Ruby to generate world files from a template. This allows separating bits of the world into different templates, but the final generated world is always one.

You can see an example here. And here are instructions on how to get started with it.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-10-29 10:00:11 -0500

Seen: 186 times

Last updated: Oct 29 '18