Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Orientation in 2D
#14
(08-01-2018, 12:30 AM)Livealot Wrote: Hopefully that's more clear.
Absolutely. Thanks for the details.

(08-01-2018, 12:30 AM)Livealot Wrote: The shape/complexity of the spline in the middle does not seem to matter at all.
When using dynamic orientation, the orientation is deduced from the Orientation Anchors rotations (in addition to swirling). By default, the first and last CPs are Orientation Anchors. Then users can choose to set specific CPs as Orientation Anchor.

(08-01-2018, 12:30 AM)Livealot Wrote: getOrthoUp0INTERNAL() uses a static Vector3.up reference which may not be appropriate for 2D but I wasn't able to change that in a way that yielded better results
The Vector3.up is multiplied by the CPs rotation, so chaging the rotation should do the trick, or am I missing something?

(08-01-2018, 12:30 AM)Livealot Wrote: Auto End Tangents toggling on and off didn't seem to have an impact
This setting is irrelevant to your current concerns. This setting is used by spline interpolation modes that need at least 4 CPs to work. It is used to decide if the spline should "duplicate" behind the scenes the first and last CP to get the sufficient number of CPs.

(08-01-2018, 12:30 AM)Livealot Wrote: The end of ProcessDirtyCheckpoints for !closed splines does something but I couldn't figure that one out
If you mean this code
Code:
// Handle very last CP
if (!Closed)
{
  CurvySplineSegment beforLastVisibleCp = GetPreviousControlPoint(LastVisibleControlPoint);
  LastVisibleControlPoint.ApproximationUp[0] = beforLastVisibleCp.ApproximationUp[beforLastVisibleCp.CacheSize];
}
This gets the last up of the last segment, and set it as the first (and unique) up of the last CP (wich is not a segment, since the spline is open).
About the CPs visibility, the default behavior (splines having Auto End Tangents to true) yield splines with all their control points visible.
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: