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?
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
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.
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#5
Perfect, that works great.

Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 84 01-20-2025, 12:25 PM
Last Post: _Aka_
  Extrude mesh along spline. New and confused user GhostStalker 3 18 01-02-2025, 09:58 AM
Last Post: _Aka_
  Newly created spline is invisible quickytools 7 39 12-21-2024, 10:14 AM
Last Post: _Aka_
  Method of scattering objects along spline joebain 1 9 11-26-2024, 03:20 PM
Last Post: _Aka_

Forum Jump: