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

Expose a way to add assets to an object in the API #68

Closed
philpax opened this issue Feb 13, 2023 · 2 comments
Closed

Expose a way to add assets to an object in the API #68

philpax opened this issue Feb 13, 2023 · 2 comments
Labels
topic:api API functionality, including both host and guest

Comments

@philpax
Copy link
Contributor

philpax commented Feb 13, 2023

e.g.

Components::new()
  .set(model_from_url(), ...)
  .set(collider_from_url(), ...)
  .set(object_from_url(), ...)

The latter acts as a "template"; if that object is changed, all the components on the objects spawned from that template will be replaced with the new values from the template. This is most relevant to #12.

@philpax philpax added the topic:api API functionality, including both host and guest label Feb 13, 2023
@philpax
Copy link
Contributor Author

philpax commented Feb 13, 2023

Can you set the collider from URL?

@FredrikNoren
Copy link
Contributor

Yup; collider_from_url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:api API functionality, including both host and guest
Projects
None yet
Development

No branches or pull requests

2 participants