Remix.run Logo
continuational 3 days ago

Very neat. I'm not sure if I missed it, but is there any way to get n equidistant points on the curve?

E.g. for moving an object at constant speed along the curve.

jamwaffles 3 days ago | parent [-]

There is indeed: Bezier::compute_lookup_table[1]. You'll want to use a `TValueType` of `Euclidean` to get equidistant points.

[1]: https://docs.rs/bezier-rs/latest/bezier_rs/struct.Bezier.htm...