-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
planningissues related to planning for the libraryissues related to planning for the library
Milestone
Description
Because of Suspense/Async initiation issues with Jolt @isaac-mason's original library created a global object called Raw and accessing it was done with Raw.module
The jolt demos don't have to do this because they wait for the JoltInit promise before doing anything, and by then Jolt is correctly established on the Window as a global. So instead of new Raw.module.Vec3() for example, they do new Jolt.Vec3()
- I'm not even sure it's possible to do the
Joltitem as a global. I've not seen other libraries pull this off. - With recent physics component system issues, we are likely going to need a global object we can access for singleton purposes.
If we decide to/have to keep it, should we continue to call it 'Raw.module` or would a semantic name be better?
Metadata
Metadata
Assignees
Labels
planningissues related to planning for the libraryissues related to planning for the library