manually rotate a body

Skip to first unread message

Guan Yu

Jul 2, 2022, 1:01:59 AMJul 2
to ProjectChrono
Hi all,

I am doing a simple rocket launch simulation which has a EasyCylinderBody with a constant thrust force attached at the center of mass, the force has fixed direction along the cylinder frame. During the fly, I would like to manually give the cylinder body a rotation by defining the designated angle (manually rotate the body) .

I was wondering which should be s proper way to do this?

Thank you in advance,

Radu Serban

Jul 2, 2022, 5:19:54 AMJul 2
to ProjectChrono

Hi Yu,


All integrators in Chrono are single step, meaning you can set the state of the body at any step within your main simulation loop without any issues.  Simply use ChBody::SetRot(). Of course, you’ll want to make sure you do that only once, at the time you want, and not also at all subsequent steps.



You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Reply all
Reply to author
0 new messages