question

Serge A avatar image
2 Likes"
Serge A asked Serge A commented

Vec4 and quaternions

I noticed that FlexSim 2025 documentation mentions new classes, Vec4 and Mat4.

I'm just curious, are you planning to support quaternion math?

It would be really neat if we could use Vec4 to represent and calculate FlexSim rotations.

https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation

FlexSim 24.2.2
quaternionvec4
· 4
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

Logan Gold avatar image
0 Likes"
Logan Gold answered Serge A commented

Hey @Serge A, there are no current plans to add anything to FlexSim related to quaternion math. If you want to post an Idea with some more details about what you'd like to see in FlexSim, we can add that as an improvement suggestion to the development list.

Otherwise, it looks like you might be able to do quaternion math in Python, so you might be able to connect to an external Python script and do it that way.

· 1
5 |100000

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