-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
ModelInstanceCollection picking #4975
Conversation
One test is failing in CI: |
@@ -54,6 +56,34 @@ define([ | |||
FAILED : 3 | |||
}; | |||
|
|||
function ModelInstance(collection, modelMatrix, instanceId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be @private
and in another file since it can be used outside of this file?
Passes locally for me too. Looks unrelated. And I see different test failures in CI.
|
Code is also OK with me, just that one comment. |
Updated by putting |
Part of #4897 |
Looks good! |
Thanks for the quick review, @freder! |
This fixes picking for
ModelInstanceCollection
. This doesn't affect i3dm picking which continues to work fine.The picked object that is returned is a
ModelInstance
object which contains the instance's modelMatrix, the underlying collection, the underlying model, and its instance id.You can set the modelMatrix to move the instance dynamically.
@freder Is this the sort of functionality you had in mind?