What I am trying to do is work out how long it will take an object to reach its top position when a force is applied…
for example when i apply a force of Vector3(0f, 3.5f, 0f)
how long will it take for the ball to stop moving up wards and then fall. (and also what its top position would be)
i need to work this out before the force is applied. I was expecting something like
float updatesBeforeForceNil = 3.5f / Physics.gravity.y;
but then the gravity setting is 9.81f! so that obviously wont work. I then thought that the gravity.y was how much force is removed per second, but i did some math and the numbers were close, but not quite there.
Even though I could have put this down to fluctuating frame rate, I don’t want to as it was based on a guess and probably completely wrong! I would rather get some advice of someone who has more experience!
Thanks in advance
EDIT: I’m guessing this may also depend on which force type is used. (currently impulse);
also the calculation will always be from a stationary object!