MATLAB: Simscape Multibody 2G // Change the direction of the axis of a joint primitive

joints primitivemultibodySimscapeSimscape Multibody

Hello,
The title says a lot, I found this example here (in section "directing joint axis") that explain how to do it in the 1G, but no idea how to do that in the second generation.
How can I for instance use a prismatic joint and decide that the primitive is along x and not along z ?
Thanks in advance, any tip would help a lot ):

Best Answer

The 2nd Generation joint blocks in Simscape Multibody define the primitive along one direction. For example, the Revolute Joint block represents a joint with one rotational degree of freedom along the common Z axis, as mentioned in the documentation:
You cannot change the primitive direction of rotation, but you can connect a Rigid Transform to the joint block. This change was made to add more flexibility in defining reference frames between solids and joints. Refer to the following documentation:
Here is an example that uses this technique rather than using First Generation blocks:
Related Question