Do something after the next physics step (not the frame)
Hey guys,
Unity's physic step is done once every x frames (varying in both Update and FixedUpdate). I need to detect when that happened.
I want to call IncredibleMethod() in an object just right after the first physics step. I want to ensure that OnTriggerEnter2D is called before IncredibleMethod().
Any suggestions?
Comment
There will be multiple fixedUpdate frames called before 1 physics update and its always different. I could be between 5-60.
Just to clarify, you know that FixedUpdate() is (quote Unity docs) "Frame-rate independent" and "has the frequency of the physics system", right?