mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-18 01:06:47 +01:00
Fix and index in curves.gd.
This commit is contained in:
parent
6c5f2c0e95
commit
920d4895e1
@ -58,8 +58,8 @@ static func curve(x : float, points : PoolRealArray) -> float:
|
||||
var dx : float = x - points[pi];
|
||||
|
||||
#var d : float = p_"+name+"_"+str(i+1)+"_x - p_"+name+"_"+str(i)+"_x;
|
||||
var d : float = points[pi + 1] - points[pi];
|
||||
|
||||
var d : float = points[pip1] - points[pi];
|
||||
|
||||
var t : float = dx / d
|
||||
var omt : float = (1.0 - t)
|
||||
var omt2 : float = omt * omt
|
||||
|
Loading…
Reference in New Issue
Block a user