Skip to content

Commit

Permalink
Fix SplinePoint length
Browse files Browse the repository at this point in the history
  • Loading branch information
Speedphoenix committed Jan 31, 2025
1 parent 89d5b1e commit efd8045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrt/prefab/l3d/Spline.hx
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ class Spline extends hrt.prefab.Object3D {
var l = 0.0;
for( i in 0 ... samples.length - 1 ) {
samples[i].t = l/length;
samples[i].length = length;
samples[i].length = l;
l += samples[i].pos.distance(samples[i+1].pos);
}
samples[samples.length - 1].t = 1;
Expand Down

0 comments on commit efd8045

Please sign in to comment.