Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coming back on spline issue
#1
Hi, it's me again with another question.

Currently I'm trying to pause my controller so the gameobject can move freely on my navmesh and after a while, my controller decide to get back on the spline.

So here what I do:

- Follow spline
- Decide to move freely 
                    -> SplineController.Pause();                    
- Move freely until feeling coming back on spline 
                    -> Find nearest CurvySegment
                    -> Use NavMeshAgent
- When reaching the CurvySegement 
                    -> SplineController.AbsolutePosition = SplineController.Spline.GetNearestPointTF(curvySegment.position); 
                    -> SplineController.Play();

But everytime when, the controller's position is set at 0TF.
Reply


Messages In This Thread
Coming back on spline issue - by lllApOlll - 03-15-2018, 01:24 PM
RE: Coming back on spline issue - by lllApOlll - 03-15-2018, 02:02 PM
RE: Coming back on spline issue - by _Aka_ - 03-15-2018, 08:53 PM
RE: Coming back on spline issue - by _Aka_ - 04-03-2018, 04:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rasterized Path Range issue proton 2 10 04-15-2024, 03:42 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 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_

Forum Jump: