RedUniverse:
Filter:
redUniverse/Classes (extension) | Red > redUniverse

RedUniverse
ExtensionExtension

fundamental object in the redUniverse toolkit

Description

NOTE: First read the readme.txt and then see the file redUniverseExamplesOverview for the fun stuff.

This is a global class for dealing with worlds. There is only ever one universe. All worlds register themselves in the universe when created.

Class Methods

.clear

Clear all worlds.

.add

Manually add a world to the universe. Usually never needed.

.remove

Manually remove a world from the universe.

.migrate

Move one object from its world to another.

.migrateAll

Move all objects in one world to another.

.interpolate

Return a new world in-between two other. All world parameters are interpolated but objects stay.

.interpolateMigrate

Interpolates and also move over all objects. Usually you will want to remove the old worlds manually.

.write

Save all worlds and objects and their respective state to disk.

.read

Import worlds and objects and their respective state from disk.

.worlds

Return an array of all available worlds.

Examples