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

fix/workaround for teleport-controls collisionEntities on mobile #182

Merged
merged 3 commits into from
Apr 12, 2018

Conversation

InfiniteLee
Copy link
Contributor

@InfiniteLee InfiniteLee commented Apr 11, 2018

Add nav-mesh-helper component to force calling queryCollisionEntities() on teleport-controls once an environment has changed.

fixes mozilla/socialmr#78


init: function() {
const teleportControls = this.data.teleportControls;
this.el.addEventListener("model-loaded", () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this gets called multiple times if the environment has multiple layers. Not sure if you want to debounce queryCollisionEntities, if it's expensive.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we have a bundleloaded event fired by gltf-bundle after all the model-loaded events have fired

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

teleport navmesh not working on daydream
3 participants