Author Topic: Catmull-Rom spline - how to applay  (Read 815 times)

Offline ramzes0071

  • byte
  • *
  • Posts: 11
    • View Profile
Catmull-Rom spline - how to applay
« on: April 07, 2013, 04:57:54 pm »

I am writing an application in which I  have route as list of 3d object (plane), and I want to modify the route  from side to side and up and down. The perspective is like int AlienRunner project. I learned that I need to use Catmull-rom spline to modify route. But I don't know how to use it.

If you could explain how to do it, I will be grateful.


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12047
    • View Profile
Re: Catmull-Rom spline - how to applay
« Reply #1 on: April 08, 2013, 07:27:44 am »
I'm not sure if i get the question...if you have some path defined in some way (splines or whatever), your code somehow has to translate the current position into a translation of your moving object and apply that. There's no magic "follow path" method or similar in jPCT.