Closed wuv-ogre closed 6 years ago
The default gravity in RBDyn can be a little surprising: it is along the y-axis. This is a remainder of the integration with a now defunct simulator, in which gravity was along the y-axis to cover 2D and 3D cases seamlessly. Thus, we most often set the gravity in the mbc
to {0, 0, 9.81}
.
This is not a bug, but a recurring source of surprises that we maybe should get rid of.
For a Free base joint I noticed bodies fall in the opposite direction to gravity, easy to fix just change sign of gravity in ForwardDynamics::computeC() to
then if I set gravity to (0, -9.81, 0) objects fall down the y-axis rather than up it