www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: ramzes0071 on April 07, 2013, 04:57:54 pm

Title: Catmull-Rom spline - how to applay
Post by: ramzes0071 on April 07, 2013, 04:57:54 pm
Hi,

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.

Thx
Title: Re: Catmull-Rom spline - how to applay
Post by: EgonOlsen 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.