Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rotation issue with generator

I have a Bezier spline, all normals pointin out (y direction) and it is not moving in z direction.
I then wish to create a specified GameObject on the cube, but when doing this it rotates the GameObject around y so the orientation no longer is correct.

i can se the same happens if i use "Quaternion.LookRotation(splineCurve.GetTangentByDistance(distanceAndOffset,Space.World))" then it turns the GameObject also on the y axis.
so the problem seems to be the spline but i cannot se the problem or what settings i should tweek.

do someone have an idea how to fix this

best regardsĀ 
Sorry but I am not sure to understand your issue. I will answer based on my understanding. Please send me a reproduction case if my answer is not relevant.

In your spline parameters, try to set the Orientation to Static:
If Static is not good enough, set the value back to Dynamic, and rotate the Control Points that are orientation anchors. That way you can define the orientation of your spline manually.
If needed, please refer to this tutorial:

I hope this helped.
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rasterized Path Range issue proton 7 26 04-30-2024, 11:17 AM
Last Post: _Aka_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 12 04-03-2024, 03:16 PM
Last Post: _Aka_
Exclamation Extending Curvy Generator for Advanced Lofting - Feasibility Check amutp 2 5 03-27-2024, 07:25 AM
Last Post: amutp
  Generating GO only on CPs in Generator GameDeveloperek4123 1 7 03-04-2024, 11:06 AM
Last Post: _Aka_

Forum Jump: