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
  Spline Issue Leading to Unity Freeze Pankaj09 1 227 08-24-2026, 11:28 PM
Last Post: _Aka_
  Connecting Multiple Spline Nodes Issue Ritesh Kadam 1 179 08-22-2026, 11:24 PM
Last Post: _Aka_
  Spline Spots from 2 samples. BitBlit 8 1,113 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,510 04-12-2026, 03:18 PM
Last Post: _Aka_

Forum Jump: