Closed lakshaya17 closed 7 months ago
I am considering the stopping condition to be x and y are equal to zero or all x, y ,z are equal to zero.
Inside of the affect! function, just check that the other value is sufficiently close to zero. You only need one condition for that. What you wrote there is x or y or z is zero.
Hey,
I am trying to add one or two more callback functions for a 3D model. I am considering the stopping condition to be x and y are equal to zero or all x, y ,z are equal to zero. For some reason, I am not able to get results. Should it be like the following code?
Also, what if I want to make all 6 states equal to zero? For example, when x = 0 then x_dot = 0.
In anticipation of your reply.
Regards