Is there an option to control the spline locally and not globally?
The goal is to place [ParentObject] anywhere in the world and rotate it anyhow and have the controller work locally. The positioning works but the rotation does not work.
Here's how I've structured the objects:
ParentObject
-> CurvySpline
-> CP0001 etc.
-> SplineController
-> Object to Move Along the Spline
If I rotate [ParentObject], the CurvySplineController does not rotate with it.
On the forums, I see people talking about an option (Space.Self / Space.World). But I don't see it anywhere on the Spline Controller or the Spline.
Hi,
I attached a scene that reproduces what I understood from your setup, and when rotating the ParentObject, everything works as expected. Can you please open that scene and tell me if yes or no you encounter the issue in it?
Here screenshots from my test:
The scene with unrotated ParentObject
The same after rotating ParentObject
Here is the hierarchy
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
12-04-2018, 07:26 PM (This post was last modified: 12-04-2018, 07:41 PM by Karthik7Nike.)
Thanks for the quick response!
I did check the scene that you sent. It seems to work.
I've attached a scene that contains the structure that I'm going for. Let me know what I'm doing wrong.
I'm attempting to move an object on a vertically aligned 'C' shaped spline. However, I don't want the spline to direct the orientation of the object; I want complete control over the rotation of the object.
So I've set the Spline Orientation to None. But that seems to lock the rotation of the Object.
Let me know.
Thanks a lot!
"I want complete control over the rotation of the object"
Clarification: I'd like to control it by rotating the parent object (i.e the Spline itself and thereby the object on it).
Rotation on the Y-axis, to be specific!
Ok, I now understand what you try to do. To do it, you will simply need to add a script that overrides the controlled object's rotation to set it the same as the rotation of the spline. It's a one line script. I added it to the zip and updated the scene.
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.