diff options
author | Jihyun Yu <yjh0502@gmail.com> | 2021-08-21 16:57:59 +0900 |
---|---|---|
committer | Jihyun Yu <yjh0502@gmail.com> | 2021-08-21 16:57:59 +0900 |
commit | 8a6fc54ccdba233b2951b8933798c03915739afd (patch) | |
tree | 13fd3f6d9c7c45df212ac440f8992427f880f64e /scene/3d/audio_stream_player_3d.h | |
parent | e599f1bdf0ca63b43350115941b6fba9b5333a5c (diff) |
Curve2D/Curve3D: exact linear interpolation
While calculating interpolated points, intervals between two baked
points has been assummed to be `baked_interval`. The assumption could
cause significant error in some extreme cases (for example #7088).
To improve accuracy, `baked_dist_cache` is introduced, which stores
distance from starting point for each baked points. `interpolate_baked`
now returns exact linear-interpolated position along baked points.
Diffstat (limited to 'scene/3d/audio_stream_player_3d.h')
0 files changed, 0 insertions, 0 deletions