โ† All examples

mesh algorithms

Kochanek-Bartels tension, continuity and bias spline

Interpolate keys with cubic Hermite segments whose tangents are shaped by tension, continuity and bias, as in animation key editors. Use it for motion paths and value curves with overshoot or sharp keys.

Recorded render of Kochanek-Bartels tension, continuity and bias spline

What this component contains

  • ATTRIBUTION.md
  • LICENSE
  • README.md
  • component.json
  • example.gltf
  • kochanek_bartels_spline.py
  • meshkit.py
  • preview.png
  • test_package.py
  • verification/native.json

How it works

Entry points
hermite, tcb_tangents, tcb_spline, build, main
Parameters
tension, continuity, bias, samples_per_segment
Complexity
O(keys * samples_per_segment)
Axes
+Y up, metres

Recorded checks

godot 4.7.2.stable.official.ed1daf0bf

  • generator_runs_system_python
  • generator_runs_verifier_python
  • gltf_strict_structure
  • interpreters_agree
  • example_matches_generator
  • godot_headless_gltf_load
  • godot_compatibility_render

Limits to consider

Keys are equally spaced in time; uneven key times would need the tangent scaling of the original paper, which is not applied. Large continuity values make visible corners by design. Open ends repeat the neighbour difference.