Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify GLTF map loading #2

Open
wendivoid opened this issue Dec 19, 2021 · 0 comments
Open

Simplify GLTF map loading #2

wendivoid opened this issue Dec 19, 2021 · 0 comments
Labels
Cleanup Small cleanup tasks

Comments

@wendivoid
Copy link
Owner

Currently the process to load maps from gltf looks something like this:

load gltf asset -> 
    mark all entities created with a marker component ->
    iterate through these adding components as necessary

This process could be simplified if/when Rapier3d components implement Reflect, to skip step 3 & possible 2.
Currently I'm using a custom GLTF loader to parse the extras field and store the value alongside the entity, If we simple added the components added in step 3 when loading the initial GLTF asset

@wendivoid wendivoid added the Cleanup Small cleanup tasks label Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup Small cleanup tasks
Projects
None yet
Development

No branches or pull requests

1 participant