Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Is it possible to reverse the direction an object will take along a path? Right now I have a not so simple path. It was only after I attached an object to it that I realized it's starting at the wrong end! Ideally I would like to not have to re-build the path. Does anyone know if there's a way to reverse the path direction? I don't see any such options in the Follow a Path behaviour. Thank you for any assistance M. |
||||
|
Set TimeNeeded(ms) (or whatever it is called) to a negative value in the Follow a Path action. |
||||
|
*behavior ![]() |
||||
|
Guest wrote: *behavior ![]() WOOPS! |
||||
|
Guest wrote: Set TimeNeeded(ms) (or whatever it is called) to a negative value in the Follow a Path action. Just tried it and it did nothing... in fact... it stopped the object from moving along the path completely. I don't think it likes negative values. It would be nice if the curve object or even the behaviour had a revers direction toggle. |
||||
|
Negative values must only work if you check the IsClosedCircle property in the the path node. That's probably not what you want. Hmm. You can try scaling the path node to something like -1.0 on the X axis. It appears to flip the path in my editor. I don't know how you have the path in your scene, so you may to scale it differently on your end. Might also have to position/rotate it to get it back to perfect. I agree it'd be nice to have the reverse option. Programming your own path follow is not very hard at all. I think Sven has something like that on his Itch page. |
||||
|
Thanks for all the suggestions. At this stage I'll just re-build it. But there's an inherent problem here. When you make a path... there's nothing in the GUI that lets you know where the head or tail of it is.... so you're forced to go through a process and trial and error by attaching an object to it and seeing where it goes. Then... and only then is it safe to actually start shaping your curve object. God forbid you don't do this. You're screwed if you don't. That's why the curve it's self, or the path behaviour should just have an option to reverse. |
||||
|
Can't you just put the follow behavior on the node to follow the path while you work? Seems to me that'd be the thing to do, if you want to see its direction. I have no clue, however, because I've only used paths for short stuff. I made a super basic mine cart system that worked pretty well. Don't recall any problems with it. It is tedious and a bit unrealistic, but oh well. You're welcome! Good luck with your game. |
||||
|
Yes... that is what I'll have to do in the end. It just seems like a clunky workflow to have to do all these extra steps just to do a simple task. Like I think I said... lord forbid you didn't do this extra process, and your path is fairly complex. There is no other option other then to have to re-make your path. Anyway... this certainly seems like a simple area for improvement. |
|