2
0
Эх сурвалжийг харах

Spline: fix getSplinePoint() output t

lviguier 5 сар өмнө
parent
commit
7be96e4830

+ 1 - 1
hrt/prefab/l3d/Spline.hx

@@ -260,7 +260,7 @@ class Spline extends hrt.prefab.Object3D {
 			out.tangentIn.lerp(samples[s1].tangentIn, samples[s2].tangentIn, t);
 			out.tangentOut.lerp(samples[s1].tangentOut, samples[s2].tangentOut, t);
 			out.length = hxd.Math.lerp(samples[s1].length, samples[s2].length, t);
-			out.t = t;
+			out.t = hxd.Math.lerp(samples[s1].t, samples[s2].t, t);
 		}
 
 		return out;