Hello chrono user.

I want to restart the vehicle dynamics simulation using StateGather and 
StateScatter. 
Before restart, I correct the vehicle status using Stete Gatther.
        veh.GetSystem()->StateSetup(state_pos, state_vel, state_acc);
        veh.GetSystem()->StateGather(state_pos, state_vel, T);
        veh.GetSystem()->StateGatherAcceleration(state_acc);
        veh.GetSystem()->StateGatherReactions(state_reactions);

And after initialize WheeledVehicle, I callStateScatter.
    veh.GetSystem()->StateScatter(state_pos, state_vel, T, true);
    veh.GetSystem()->StateScatterAcceleration(state_acc);
    veh.GetSystem()->StateScatterReactions(state_reactions);

But result is broken the vehicle.
[image: broken_restart_vehicle.jpg]

 If I call StateScatter, do I need to call another function  as well?
Could you help me how to restart the vehicle simulation.

Best regards

Nomoto

-- 
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/3c4fba43-d9d0-4abe-bb02-e286945ceb9en%40googlegroups.com.

Reply via email to