Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rotation issue on a Parented Spline Controller
#1
Hi,

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. Sad

Using Curvy Version 4.1.1.
Thanks
Reply
#2
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
   


Attached Files
.zip   ControllerRotation.zip (Size: 4.02 KB / Downloads: 4)
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#3
And about the Space.Self / Space.World option, it is no more part of Curvy because it wasn't working as expected
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#4
Photo 
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!


Attached Files
.zip   ControllerRotation.zip (Size: 4.12 KB / Downloads: 3)
Reply
#5
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.


Attached Files
.zip   ControllerRotation2.zip (Size: 4.84 KB / Downloads: 4)
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#6
That works!!  Big Grin
Thank you so much!
Reply
#7
You are welcome
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Method of scattering objects along spline joebain 1 3 11-26-2024, 03:20 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 5 13 10-29-2024, 10:19 AM
Last Post: _Aka_
  Can't set CG Path Controller j95677 4 22 10-04-2024, 06:55 PM
Last Post: j95677
  Nested Spline Volume Spot Instantiation merobbins5 3 7 07-26-2024, 09:58 AM
Last Post: _Aka_

Forum Jump: