MATLAB: How to rotate a body around x-axis in simscape

revoluterotate a bodyrotation around x axisSimscape Multibody

I have created one wheel model using simscape multibody. I have created a wheel and an axle using body geometry. The axle is along the x-axis and i want to rotate that wheel around x-axis. How to do it? because when i am using revolute joint, then it rotates the body around z-axis. So, which joint should be used to rotate the body around x-axis?

Best Answer

Insert a rigid transform before and after the revolute joint. The first transform rotates +90 degree around the Y axis, while the second transform rotates -90 degree around the Y axis. The combination of the two rigid transforms and the revolute joint is equivalent to a revolute joint aligned with the X axis.
Related Question