Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Orientation in 2D
#7
The orientation is computed based on control point's rotation, in addition to other factors. So what you expressed as "a way to lock in the right orientation adjustment at instantiation of the control point" boils down to setting the right orientation at the control point's instantiation.

The methods to add control points (CurvySpline.Add, CurvySpline.InsertAfter, ...) have an override to define position at instantiation, but no such override exists for orientation. The created control points will have a default orientation (X=0, Y=0, Z=0). So you will have to modify the orientation after instantiation using CurvySplineSegment's SetRotation or SetLocalRotation.

I think that the rotation of the last control point by 180° (while setting Orientation as Dynamic) should be enough for your case, but if it isn't, then the way to figure out the right control point rotation to set will be something like:
Orientation at N = (Orientation at N-1) * (the rotation between Tangent at N-1 and Tangent at N)
N being a control point on the spline, and N-1 being the previous control point.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
Orientation in 2D - by Livealot - 07-24-2018, 09:54 PM
RE: Orientation in 2D - by _Aka_ - 07-25-2018, 11:47 AM
RE: Orientation in 2D - by _Aka_ - 07-25-2018, 11:59 AM
RE: Orientation in 2D - by Livealot - 07-26-2018, 03:05 PM
RE: Orientation in 2D - by _Aka_ - 07-26-2018, 04:11 PM
RE: Orientation in 2D - by Livealot - 07-26-2018, 04:41 PM
RE: Orientation in 2D - by _Aka_ - 07-26-2018, 06:10 PM
RE: Orientation in 2D - by Livealot - 07-29-2018, 09:31 PM
RE: Orientation in 2D - by _Aka_ - 07-30-2018, 12:35 AM
RE: Orientation in 2D - by Livealot - 07-30-2018, 04:47 PM
RE: Orientation in 2D - by Livealot - 07-30-2018, 11:27 PM
RE: Orientation in 2D - by _Aka_ - 07-31-2018, 10:13 PM
RE: Orientation in 2D - by Livealot - 08-01-2018, 12:30 AM
RE: Orientation in 2D - by _Aka_ - 08-01-2018, 12:12 PM
RE: Orientation in 2D - by Livealot - 08-01-2018, 08:00 PM
RE: Orientation in 2D - by _Aka_ - 08-02-2018, 10:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Shapes points orientation itsGama 3 8 01-18-2023, 02:51 PM
Last Post: _Aka_
  2d - orientation looping_co 1 5 09-01-2022, 04:17 PM
Last Post: _Aka_
  Spline controller orientation itsGama 4 31 01-24-2022, 06:38 PM
Last Post: _Aka_
  Regarding static orientation mydayz 10 288 12-05-2021, 01:25 PM
Last Post: _Aka_

Forum Jump: