Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating connection from code
#1
So i am trying to connect Spline1 last point to Spline2 first point.

What i tried is

Code:
class ConnectionCreator : MonoBehaviour
{
   public CurvySpline spline1;
   public CurvySpline spline2;

   private void Start()
   {
       CurvyConnection curvyConnection = CurvyConnection.Create(spline1.LastSegment, spline2.FirstSegment);
   }
}

The problem is it gets the control point in n-2 which i understand it's the start of the LastSegment.

This is what i see when playing:

[Image: q6sh8nf.png]

If that is so, then how am i supposed to connect spline1 to spline2?
Reply


Messages In This Thread
Creating connection from code - by kardoser - 12-13-2018, 01:23 AM
RE: Creating connection from code - by _Aka_ - 12-13-2018, 11:18 AM
RE: Creating connection from code - by kardoser - 12-13-2018, 11:54 AM
RE: Creating connection from code - by _Aka_ - 12-13-2018, 12:19 PM
RE: Creating connection from code - by dazz777 - 02-27-2019, 11:06 AM
RE: Creating connection from code - by _Aka_ - 02-27-2019, 11:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help creating a wedge Thinkurvy 2 3 04-24-2024, 12:25 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
Thumbs Up Can't delete connection lacota 3 6 03-16-2024, 11:34 AM
Last Post: _Aka_
Lightbulb Junction & Connection Navigation System Design SAMYTHEBIGJUICY 4 13 11-27-2023, 01:04 PM
Last Post: _Aka_

Forum Jump: