question

Orry avatar image
0 Likes"
Orry asked Felix Möhlmann commented

About Vec

Hello

What is the difference between Vec(0.5,0.5,0.5) and Vec(1,1,1)?

Thanks

FlexSim 23.1.3
vec3
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 Felix Möhlmann commented

The first vector has a magnitude (length) of 0.87 and the second has a magnitude of 1.73.

· 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.

Orry avatar image Orry commented ·
How can I calculate this?
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Orry commented ·

You can read it as a property of the Vec3 class.

Vec(1, 1, 1).magnitude

https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Vec3.html

0 Likes 0 ·

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.