question

Marian Cretu avatar image
0 Likes"
Marian Cretu asked Joerg Vogel commented

Difference of coordinates

Hello guys,

Why are these coordinates different? XYZ on the right pannel are different from the coordinates in the bottom bar.

Thank you.coordinates.jpg


FlexSim 21.2.4
coordinates
coordinates.jpg (1.1 MiB)
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

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Joerg Vogel commented

The coordinate values in the properties on the right depend on the option set to the left of them.

1635756928412.png

By default, this will be the midpoint of the bottem face of the object's bounding volume.

The coordinates shown in the bottom bar refer to the object's origin point (top left corner of the bottom face)

1635757245735.png


1635756928412.png (61.7 KiB)
1635757245735.png (62.0 KiB)
· 2
5 |100000

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

Marian Cretu avatar image Marian Cretu commented ·
@Felix Möhlmann thank you. How can I get the coordinate in properties through code ?

Thank you.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Marian Cretu commented ·

There is FlexScript Class for objects.

property location

method getLocation lets you set the point of origin to evaluate the coordinates location.

in conjunction with Vec3 Class you can project coordinates into different scopes.

0 Likes 0 ·