hi to all
am facing a issue in some calculation.i have a high speed projectile which moves really high speed.i have done all the calculations of the projectile in update function,but some times (as calculations are as per frames)it is skipping.for example my object started in first frame it is fine bt the second frame or 3rd …it is going very far away i.e.,going below the terrain.i want to move it in every value which results in the calculation.i.e.,unity calculates for every frame bt some times it is skipping it is not at all constant.how can i rectify this issue.will it works good if i use fixed update rather update.
thanks in advance
The question is not that obvious but generally to make any calculation frame rate independent you should multiply it’s value with Time.deltaTime
If you need a constant time between the interations of the calculation then either use FixedUpdate or InvokeRepeating method to adjust the constant time between function calls easily.