-
-
Notifications
You must be signed in to change notification settings - Fork 23.8k
Closed
Description
Tested versions
- Was fine with Godot 4.3 (stable)
- Values seem to be clamped to [0,1] with Godot 4.4 beta 3 (same project)
System information
Godot v4.4.beta3 - Ubuntu 24.04.1 LTS 24.04 on X11 - X11 display driver, Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA RTX A5000 Laptop GPU - 12th Gen Intel(R) Core(TM) i7-12700 (20 threads)
Issue description
Curve : it seems like values are being clamped to the interval [0,1] in Godot 4.4.
Best,
henrik
Steps to reproduce
var testcurve = Curve.new()
testcurve.clear_points()
testcurve.add_point(Vector2(0,-1))
testcurve.add_point(Vector2(0.1,0.0))
testcurve.add_point(Vector2(0.2,0.2))
testcurve.add_point(Vector2(0.8,0.9))
testcurve.add_point(Vector2(1.0,2))
testcurve.bake()
for i in range(0, 11):
var x = i / 10.
var y = testcurve.sample(x)
print(Vector2(x, y))
##### Output Godot 4.3 : #####
(0, -1)
(0.1, 0)
(0.2, 0.2)
(0.3, 0.251852)
(0.4, 0.381481)
(0.5, 0.55)
(0.6, 0.718519)
(0.7, 0.848148)
(0.8, 0.9)
(0.9, 1.45)
(1, 2)
##### Output Godot 4.4 beta 3 : #####
(0.0, 0.0)
(0.1, 0.0)
(0.2, 0.2)
(0.3, 0.251852)
(0.4, 0.381481)
(0.5, 0.55)
(0.6, 0.718519)
(0.7, 0.848148)
(0.8, 0.9)
(0.9, 0.95)
(1.0, 1.0)Minimal reproduction project (MRP)
N/A