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
  Accessing generator's input spline in script, changing it at runtime smackledorf 3 92 06-17-2021, 01:59 PM
Last Post: _Aka_
  Questions about Generator: mesh/objects within spline, snap to control point dartboard 5 190 06-09-2021, 12:42 PM
Last Post: _Aka_
  get world vector3 from absolute position on spline hawken 2 90 06-08-2021, 12:28 PM
Last Post: hawken
Shocked Change spline path at runtime burn0815 7 381 05-27-2021, 08:27 PM
Last Post: _Aka_

Forum Jump: