Ok, so I want to create artificial gravity using SetPos_dtdt.
But it doesn't seem to work.
SetPos_dt works fine, but SetPos_dtdt doesn't.
Simplified version of my code looks like this:

ChSystemNSC sys;//initialize chrono
auto b = make_shared<ChBody>();//create body 
//b->SetPos_dt(Vector(0, -1, 0));//set velocity (works fine)
b->SetPos_dtdt(Vector(0, -1, 0));//set acceleration (doesn't work)
sys.Set_G_acc(Vector(0, 0, 0));//disable gravity
sys.AddBody(b);//add body

while (true) {
sys.doframedynamics(/*external time*/)
//display b->GetPos()
}

Any form of help is appreciated.
I am using precompiled chrono 6.0.0 for windows.

-- 
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/2774bfc3-26da-4644-a0c2-5efbb731ca5bn%40googlegroups.com.

Reply via email to