Question by
sirmarcomoro · Mar 10, 2020 at 12:07 PM ·
physics2dframeratefixedupdatetimestep
Adjust timestep in individual FixedUpdate()?
Hi, I'm trying to have a specific gameObject's FixedUpdate() run 12 times per second, while maintaining every other's FixedUpdate() untouched.
Is there any way to achieve this result?
Thanks.
Comment
Best Answer
Answer by Bunny83 · Mar 12, 2020 at 03:19 AM
You know that Unity's FixedUpdate callback is part of the physics system and the main point to have it is to have consistent physics behaviour. You shouldn't really mess around with it. Apart from that the fised time step is a global setting so it can't be changed for one script only.
However you can easily implement your own, seperate fixed update at any rate you want. You can use my CustomFixedUpdate class