Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need Help Stopping an Object at a ControlPoint
#2
Hi,

Here is the code you need:
Code:
   public void ControlPointReached(CurvySplineMoveEventArgs inArgs)
   {
       if (shouldStop)
       {
           inArgs.Sender.Pause();
           inArgs.Cancel = true;
       }
   }

The Pause call makes the controller pause starting from the next frame. It does not stop the movement currently processed this frame. To stop that movement, setting the Cancel property of the event to true is the key.

Please let me know if you need anything else

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


Messages In This Thread
RE: Need Help Stopping an Object at a ControlPoint - by _Aka_ - 08-01-2019, 12:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Create Game Object Renaming Options rickgplus 1 1,081 09-23-2025, 09:33 AM
Last Post: _Aka_
  Is there a way to get the position of each ControlPoint in spline by API? Chanon 1 2,291 06-07-2025, 09:44 AM
Last Post: _Aka_
  Morph game object along curve. mikechr2000 5 3,336 02-04-2025, 09:30 PM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 2,008 08-30-2024, 09:19 AM
Last Post: _Aka_

Forum Jump: