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
  Dummy spline points hnngaf 0 12 11-14-2019, 02:08 PM
Last Post: hnngaf
  Refresh spline doesn't seem to be working dazz777 4 56 11-13-2019, 11:13 PM
Last Post: _Aka_
  Same Spline Extrusion with variable width MarioBag 5 656 11-04-2019, 01:56 PM
Last Post: _Aka_
  Change curvy gizmos to show direction of spline Horibe 1 45 11-01-2019, 07:02 PM
Last Post: _Aka_

Forum Jump: