Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working with Connections
#2
Hi

1- You can get all the connections using FindObjectsOfType (a unity method). Then, for each spline, get the yourConnection.ControlPointsList, and for each of the control points, you can get the spline from yourControlPoint.Spline
As a suggestion, using LINQ can help you make requests easily, with few code. Some requests can allocate memory though, so profile them in critical paths: https://docs.microsoft.com/en-us/dotnet/...epts/linq/

2) Get the tf on the desired spline using yourSpline.GetNearestPointTF. Then set that TF as an input for yourSplineController.RelativePosition

Have a nice day
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.
Reply


Messages In This Thread
Working with Connections - by burn0815 - 05-27-2021, 06:32 PM
RE: Working with Connections - by _Aka_ - 05-27-2021, 08:33 PM
RE: Working with Connections - by burn0815 - 05-27-2021, 08:51 PM
RE: Working with Connections - by _Aka_ - 05-28-2021, 11:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Connections Between Opposing Splines lockiidraws 1 855 12-04-2025, 02:14 PM
Last Post: _Aka_
  Procedural Connections Janooba 3 2,673 10-23-2024, 02:53 PM
Last Post: _Aka_
  Connections doesn't work in split scenes nehvaleem 4 3,325 05-29-2024, 07:31 AM
Last Post: _Aka_
  Connections Problem Juton 3 2,645 03-06-2024, 10:41 AM
Last Post: _Aka_

Forum Jump: