Created
July 29, 2019 16:41
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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