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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#5
Perfect, that works great.

Thank you.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Automated spline generation between objects Alexander Wieser 1 31 07-13-2019, 11:55 AM
Last Post: _Aka_
  UI button to start Curvy Spline in scene funkd 1 31 07-12-2019, 11:19 AM
Last Post: _Aka_
  Same Spline Extrusion with variable width MarioBag 3 115 06-27-2019, 12:41 PM
Last Post: _Aka_
  Point along Spline Ian@MrsWordsmith 3 141 06-21-2019, 03:50 PM
Last Post: _Aka_

Forum Jump: