There is a problem with SetPos_dtdt.
coords_dtdt.pos seems to be overwritten with G_acc, so what is the point of 
SetPos_dtdt?

ChSystemNSC sys;
auto body = make_shared<ChBody>();
sys.AddBody(body);
body->SetPos_dtdt(Vector(0, 1, 0));
cout << body->GetPos_dtdt().y() << endl;//1
sys.DoFrameDynamics(1);
cout << body->GetPos_dtdt().y() << endl;//-9.81 value overwritten
sys.Set_G_acc(Vector(0, 0, 0));
body->SetPos_dtdt(Vector(0, 1, 0));
cout << body->GetPos_dtdt().y() << endl;//1
sys.DoFrameDynamics(2);
cout << body->GetPos_dtdt().y() << endl;//0 value overwritten again


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/e4fd6b97-06ae-4381-a12f-c45eef5a772an%40googlegroups.com.

Reply via email to