Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Starting from the End of a Spline
#1
Hello, 
   Just trying to get to grips with your tool for a project. 

   I have a collision box on the ends of my spline, this tells the Spline Controller which spline to Play and when we get to the end Stops that spline. 

   What I would like to do is have it omni-directional, so that you can hit either collision box and go along the spline in that direction. 

   I am unable to work out how to achieve this, I know you can go backwards using speed, but what I want to achieve is to go backwards through the segments starting with the last point. 

Any help with this would be much appreciated. 

Regards,
Ian
Reply
#2
Hi,
Not sure to fully understand your needs, but it seems to me that you are missing some the following features that avoids you using that collision box: Does this help?
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#3
Sorry, in my haste I've not been overly clear.

My game has a player that uses free movement (not confined by splines), then when the player hits a collision box (which is attached to a spline) I assign that spline to the Spline Controller and hit Play. Meaning the player goes along the spline, until they hit the end and then we hit STOP.

This works perfectly fine.

What I want to be able to do is start at the end of a spline and go to the beginning.

I notice that Connections have Follow-Ups where you can define a Heading Direction, is there anything similar within normal paths?

Regards,
Ian
Reply
#4
First set the object at the spline's end by setting its Relative Position to 1 (or Absolute Position to the spline's Length), and then set the Direction to Backwards. All the fields I spoke about are available through the API and the inspector.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#5
Perfect, that works great.

Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Filling a closed spline dynamically rickgplus 1 225 04-16-2025, 08:56 AM
Last Post: _Aka_
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 285 02-03-2025, 09:34 AM
Last Post: _Aka_
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 1,087 01-20-2025, 12:25 PM
Last Post: _Aka_
  Extrude mesh along spline. New and confused user GhostStalker 3 525 01-02-2025, 09:58 AM
Last Post: _Aka_

Forum Jump: