Get Time Elapsed since Variable was set.

I’ve got a script working in order to add torque to an object while it’s in air and I’m pressing the acceleration key, but I would like to make it so that over time, the amount of torque is reduced by the time elapsed. I know the math to do it, I just need to find how long IsInAir has been set to true so I can divide my torque by that many seconds (probably will clamp the float as well, so it’s not less than one or more than a certain number).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.