5 ex_trajectory_8c example
gullradriel edited this page 2026-10-09 00:51:57 +02:00

ex_trajectory.c

Nilorea Library trajectory API graphical demo (Allegro5) Split-screen demonstration of the cubic Hermite spline trajectory API with multi-waypoint paths:

  • Left panel (2D): click to build a multi-waypoint path, object follows it
  • Right panel (3D): pre-built looping 3D path with cabinet projection

Controls:

  • Left click on left panel: add waypoint to the path
  • R: reset 2D demo
  • ESC: quit

Based on "Defeating Lag With Cubic Splines" (GameDev.net Article 914)