Skip to content

Polyline item

skzk edited this page Mar 18, 2020 · 16 revisions

TODO: Intro text
TODO: Make this page make more sense

Polyline items use Hermite splines to generate curves. The rotation value of the two nodes is used as the tangents for the function.

Rotation

This rotation value can either be set manually using the Free Rotation option, or the game can calculate it automatically.

For a node with only one "neighbor" in either direction, the rotation of both nodes is simply the direction of the that segment.

For a node p1 with a "neighbor" in both directions: Take the yaw of (p1-p0), add the yaw of (p2-p1), divide by 2.

Clone this wiki locally