ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Help with CopperCube
forum topic indicator Reverse Path?
person icon
morbott
Registered User
Quote
2024-07-24 23:21:25

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.

person icon
Guest
Guest
Quote
2024-07-25 00:58:29

Set TimeNeeded(ms) (or whatever it is called) to a negative value in the Follow a Path action.

person icon
Guest
Guest
Quote
2024-07-25 00:59:52

*behavior emoji icon_devil

person icon
morbott
Registered User
Quote
2024-07-25 02:35:31

Guest wrote:
*behavior emoji icon_devil

WOOPS!

person icon
morbott
Registered User
Quote
2024-07-25 02:39:30

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.

person icon
Guest
Guest
Quote
2024-07-25 02:56:06

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.

person icon
morbott
Registered User
Quote
2024-07-25 05:00:13

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.

person icon
Guest
Guest
Quote
2024-07-25 05:10:30

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.

person icon
morbott
Registered User
Quote
2024-07-29 16:05:20

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.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |