fletcher.paths.point-on-path-by-segment()

Return the position, velocity and acceleration vectors of a point on a path at a particular segment index.

fletcher.paths.point-on-path-by-segment(
  path,
  index,
  rev,
)

index

The segment index is a number whose integer part refers to a segment of the path and whose fractional part specifies how far along this segment to go (in terms the linear or Bézier segment’s 𝑡 parameter, not its path length).

rev

default false

Count segments from the end of the path instead of the start.