Actually I'm trying to use SplineController along other controllers implemented earlier for other type of movements. The position of the controller act as a kind of anchor for the movement themselves. This rules out the syncing solution you proposed as an alternative to changing the code I suppose. I seriously consider changing that in the future but meanwhile I try to keep things homegeneous.
I'd have to call the GetTransformPosition/Rotation on each update from another script, right?
I have another proposition though. I might be missing something important here so my apologizes if this proposition is bad for some reasons. The transform property seems to be used for getting position/forward vector/up vector (I don't find rotation though), setting local or world position according to the Space property (others?). Won't it be easier to add a protected Transform field (and a corresponding property maybe) in CurvyController that defaults to the transform of the object on which the controller is attached to and use that instead of transform property in the existing methods? It would let us change that if we want without affecting the normal usage of the controller.
By the way, great support so far. Thank you.
I'd have to call the GetTransformPosition/Rotation on each update from another script, right?
I have another proposition though. I might be missing something important here so my apologizes if this proposition is bad for some reasons. The transform property seems to be used for getting position/forward vector/up vector (I don't find rotation though), setting local or world position according to the Space property (others?). Won't it be easier to add a protected Transform field (and a corresponding property maybe) in CurvyController that defaults to the transform of the object on which the controller is attached to and use that instead of transform property in the existing methods? It would let us change that if we want without affecting the normal usage of the controller.
By the way, great support so far. Thank you.