Added GetDirectionAtDistance for the bézier curve.

This commit is contained in:
William Moberg
2016-05-26 19:06:28 +02:00
parent c060eea6bb
commit 72a91d052e
2 changed files with 38 additions and 13 deletions
+2
View File
@@ -30,6 +30,8 @@ public class WarehouseColumn : MonoBehaviour {
distance = Mathf.Repeat(distance, curve.length);
var pos = curve.GetUniformPointAtDistance(distance);
row.position = pos;
//var dir = curve.GetDirectionAtDistance(distance);
//row.LookAt(pos + dir);
}
}
}