Closed mzvast closed 1 year ago
The computation in line 70 is physically incorrect. It's just an aproximation. deceleration
is not meter per second squared in this case but just undefined. The idea is to compute a decreased speed with a simple computation.
So its meaning is similar to what the SLOW DOWN RADIUS
as in this one 🤔
This computation looks similar, yes.
You can read more about Yuka's Arrive implementation in Programming Game AI by Example, Chapter 3 (Steering Behavior, Arrive).
As in this part in ArriveBehavior.
here in line 70 the unit of speed is
m/s
, the unit of distance ism
, the unit of deceleration ism/(s^2)
. So in the aspect of units, left part we getm/s
, however, right part givess^2
, which apparently not equal.So, am I wrong anywhere? Thanks~