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.
If I call StateScatter, do I need to call another function as well?
Could you help me how to restart the vehicle simulation.