Path Tangent

Path generation/manipulation node. Path Tangent creates or processes vector path data.

basic
Since P00

Input Ports

Path

接線をサンプリングするBezier path

Path

Output Ports

Direction

正規化された接線方向ベクトル

Vec2
Angle

接線の角度(0〜360°)

Float

Parameters

NameTypeDefaultDescription
PositionFloat0.0Path上の位置(0=始点、1=終点)

動作

  1. sample_path_tangent() で t 位置の接線ベクトルを取得
  2. ベクトルを正規化(長さ1に変換)
  3. atan2 で角度を計算し、0〜360° にラップ
  4. Path未接続時は direction=(1,0), angle=0° を返す

Usage Examples

パスに沿った回転アニメーション

[BezierPath] → path → [PathTangent] → angle → [Transform(rotation)] → [Preview]
                            ↑ t                           ↑
                    [TimeSource → Remap]            [PathSample → x,y]

t を📌入力ピン化して TimeSource → Remap の出力を接続し、PathSample と組み合わせることで、Pathに沿ってTranslateしながら進行方向にRotateするアニメーションが実現できます。

Related Nodes

bezierpath
pathtangent
preview
Path Tangent — PixPipeline Node Reference