diff options
author | Maxime Leroy <lisacintosh@gmail.com> | 2019-05-01 20:47:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-01 20:47:38 +0200 |
commit | 6bd271139d8192bdac9c9cf0e5fd2d007b967598 (patch) | |
tree | 8be0ec55b2a4b9c50a2e554d70b025a11af557a9 /doc/classes/PrismMesh.xml | |
parent | 9f49e50d6d6ba8ad54e1106ab3954177ecc794c2 (diff) |
Fixing Curve2D/3D baked interpolated values
If bake interval is a multiple of the curve length, the curve would return NaN for some offset values (when `frac == 0.0`, it matches the start and end of the curve segment so `fmod == 0.0`, `frac` becomes NaN)
```
# Godot 3.1.1
var c = Curve3D.new()
c.add_point(Vector3())
c.add_point(Vector3(0.5,0,0))
c.add_point(Vector3(1,0,0))
c.bake_interval = 0.5
c.interpolate_baked(0.5) == Vector3(NAN, NAN, NAN)
```
Diffstat (limited to 'doc/classes/PrismMesh.xml')
0 files changed, 0 insertions, 0 deletions