Hi Alexandre,

There are a couple of ways you can get the time:

 * system->GetChTime();
 * if your simulation runs with a fixed timestep, you can easily count
   steps in your physics loop;

I hope that answers your question.

Greetings, Marcel


On 12-Mar-23 15:42, Alexandre Vinovrski wrote:
Hello to all,
We are a team of students working on a project for our university. We have to implement a genetic algorithm that allows an individual to walk in a physical engine. One of the conditions necessary for our algorithm to stop is the evaluation of the distance travelled based on the delta time. We have the impression that this essential functionality for our project is missing in Chrono. Do you know if this is available, or if there is a replacement for this method?
--
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/09555871-ff73-4848-b37a-2072500e85aan%40googlegroups.com <https://groups.google.com/d/msgid/projectchrono/09555871-ff73-4848-b37a-2072500e85aan%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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/9f2c116a-0d0d-351d-db87-062f997f9da8%40gmail.com.

Reply via email to