Hello, I want to make a trajectory using points and the Bezier curve formula.
I was able to figure out how to do for a static number and points, but I can’t figure out how to optimize the formula for a list so that N number of points appear on the scene while the code is running and only then the curve is built.
Is it even possible to do this ?
Collections such as Lists and Arrays have properties to indicate their size.
List() reports size via the .Count property
Arrays report size via the .Length property
Go check out some tutorials on C# collections, or simply review the API docs.