question

Zachory L avatar image
0 Likes"
Zachory L asked Phil BoBo edited

Universal Coordinates for a Product in Racks

I populated boxes into a rack and am trying to extract the x, y, and z coordinates of any box in reference to the model. I have been clicking on the box I want the coordinates from, designating it as "so" and using the function so.as(Object).location.x, but the return value has been the incorrect x-coordinate from what the true location is of the box. Is there a way to do this where I can return the correct x-Coordinate in reference to the model?

FlexSim 19.2.0
coordinatesracking
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Phil BoBo avatar image
1 Like"
Phil BoBo answered Phil BoBo edited

Use Vec3.project():

Object obj = so();
Vec3 modelLoc = obj.location.project(obj.up, model());
return modelLoc.x;
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.