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

need a method to remove/destroy anchors #77

Open
blairmacintyre opened this issue Feb 6, 2018 · 2 comments
Open

need a method to remove/destroy anchors #77

blairmacintyre opened this issue Feb 6, 2018 · 2 comments

Comments

@blairmacintyre
Copy link
Contributor

Javascript programmers should be able to ask to destroy any anchor. For anchors they created, this should work. For system-created anchors, this may or may not work (system dependent.)

@speigg
Copy link

speigg commented Feb 6, 2018

Do we want “creating” an anchor to be distinct from “adding” one, and likewise do we want “destroying” an anchor to be distinct from “removing” one?

In other words, do we care about allowing a single anchor instance to be “added” and “removed” multiple times without “destroying” it?

@blairmacintyre
Copy link
Contributor Author

I don't think there is a difference: an anchor (as we have it here) is a tracked location (likely supported by the underlying platform). There is no concept right now of an anchor that exists independent of being coupled to a place in the world.

Now, it could be that an anchor is undefined initially, or that it's current position is of poor quality.

I assume you are asking from the viewpoint of "trackable" things being coupled to Anchors. I'm imagining that working the way ARKit 1.5's FaceAnchor's work: you enable Face tracking somehow, and when a face is found, an Anchor is created. When the face is lost, the anchor become "non-tracked", it's position not being "current" or valid. If the programmer destroy's it, it is gone, and a new Anchor would be created when that face is found again.

@mozilla mozilla deleted a comment Jun 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants