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

Calling scene.drillPick breaks scene.pickPosition #2813

Closed
hpinkos opened this issue Jun 16, 2015 · 3 comments
Closed

Calling scene.drillPick breaks scene.pickPosition #2813

hpinkos opened this issue Jun 16, 2015 · 3 comments

Comments

@hpinkos
Copy link
Contributor

hpinkos commented Jun 16, 2015

In the picking sandcastle example, replace line 143 (scene.pick(....)) with

var pickedObject = scene.drillPick(movement.endPosition)[0];

The position returned by scene.pickPosition is incorrect. (For this demo, the height is negative).
I'm pretty sure it's picking the ellipsoid instead of the model.

@pjcozzi
Copy link
Contributor

pjcozzi commented Jun 16, 2015

@hpinkos is this holding you up? If so, we can look at it after #2810.

You could also take a quick look at pickPosition and pick; it might not be too hard to figure out.

@hpinkos
Copy link
Contributor Author

hpinkos commented Jun 16, 2015

@pjcozzi I skimmed through and I couldn't find anything obvious that drillPick was doing weird. I might look into it further tomorrow.

It's not holding me up, but the functionality of what I'm working on will be better once this is fixed.

@emackey
Copy link
Contributor

emackey commented Jun 16, 2015

I haven't looked deeply yet, but it's possible this is related to #2790.

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

3 participants