Skip to content

Instantly share code, notes, and snippets.

@andijakl
Created July 29, 2019 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andijakl/8e21b6b14f7c03f6e3f29e603c627795 to your computer and use it in GitHub Desktop.
Save andijakl/8e21b6b14f7c03f6e3f29e603c627795 to your computer and use it in GitHub Desktop.
Get a reference to the Amazon Sumerian engine internal version of the World.
// World reference
// -------------------------------------------------------------------
// The world is essentially the loaded scene. It allows interacting
// with the scene contents and reading / setting several properties
// of it.
const publicWorld = this.anchorEntity.world;
// Same as before, we actually need the more powerful internal world
// class, not the "normal" one.
this.internalWorld = si.World.forPublicWorld(publicWorld);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment