How can I read the minimum value of the distance calculated with sim.checkDistance?
Posted: 17 May 2021, 22:01
Hi everyone,
During my simulation I'm reading the distance between a dummy and a ball in each step with
After 20 seconds of simulation I want to send the minimum value of all those distances that I've read during the simulation.
So I want to know if there's some function to obtain the minimum value of all the distances that I've calculated in the simulation.
Thanks in advance
Cheers! :)
During my simulation I'm reading the distance between a dummy and a ball in each step with
sim.checkDistance
.After 20 seconds of simulation I want to send the minimum value of all those distances that I've read during the simulation.
So I want to know if there's some function to obtain the minimum value of all the distances that I've calculated in the simulation.
Thanks in advance
Cheers! :)