About Vec

About Vec

Plod
Not applicable
102 Views
3 Replies
Message 1 of 4

About Vec

Plod
Not applicable

[ FlexSim 23.1.3 ]

Hello

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

Thanks

0 Likes
Accepted solutions (1)
103 Views
3 Replies
Replies (3)
Message 2 of 4

moehlmann_fe
Advocate
Advocate
Accepted solution

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

Message 3 of 4

Plod
Not applicable
How can I calculate this?
0 Likes
Message 4 of 4

moehlmann_fe
Advocate
Advocate

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