How did you get 91?

Your example shows 18x5=91… that doesn’t seem accurate.

I did the following:
2^6.9=119.43 (Get point at 6.9)
2^7.1=137.19 (Get point at 7.1)
137.19-119.43=17.76 (find difference)
17.76/.2=88.8 (get slope for threshold using difference)

seems weird for it to be off so much and for the examples to use decimals one minute and then not the next.

Theres really no exact answer for this since we are only getting approximation instead of an exact answer

You can use whole number though the answer will be less accurate

Or you can even use decimal for more accuracy, more digits on the fractional part of the decimal number will result in higher accuracy

But in game programming or programming in general the more accurate the number, the more processing power will be needed

As for why he use whole number in the video, or even using multiplying by 5 instead of dividing by 0.2, is probably to encourage discussion like this.

Thanks for the response.

The simple multiplication error of 18x5=91 I think compounds the confusion I’m having with the subject.

I understand it’s only estimating slope based upon two sections of a changing curve so it’s not going to be completely accurate.

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