Open Merichbier opened 2 years ago
Thanks for the feedback and I agree. I've filed an internal work item (40132604) to track this, and we'll see if we can get something added to our docs.
The short answer is yes - use the ObjectModel.OriginToCenterTransform
property to relate origin-relative content to the center of the detected object instance.
@dfields-msft Thanks a lot for the pointer :) I was able to easily get the model origin back ! Thanks
Source : https://stackoverflow.com/questions/72705226/is-it-possible-to-get-the-object-origin-when-models-is-detected
Just repeating it here to be sure it get not forgotten.
When we have two geometrically identical model but with different origin. Is it possible to get this origin back once the model is detected ?
Example :
I played a bit with the MRTK samples and showed a sphere at different position I could retrieve from the TrackedObject class :
Both seems to return the same position in Unity World Space for both models (bounding box center). So the description of the LogicalCenter confuse me a bit :
It would be good to state somewhere in the documentation what the Location of the detected object represents and if converting a model does apply any transformation on the model.