Define gravity in Simmechanics
11 views (last 30 days)
saeed shekari on 28 Mar 2018
I have modeled a multibody robot in solidworks and when i import it in simmechanics, it moves in an unexpected direction. i think it is because i considered the gravity in the -z direction in my CAD model, but the default gravity in simmechanics is in -y direction. how can i change the gravity direction and define it in -z direction in simmech? because its very hard to change it in my CAD model.
Nicolas Schmit on 29 Mar 2018
In Simscape Multibody the gravity is towards the -z axis by default. However, the definition of the axis in Simscape might be different from the axis in your CAD software (like in SolidWorks where the +y axis is upward). If needed, you can change the orientation of the gravity using the Mechanism Configuration block.