Gamestudio Links
Zorro Links
Newest Posts
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
Zorro version 3.0 prerelease!
by TipmyPip. 02/24/26 17:09
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (Martin_HH, TipmyPip, AndrewAMD, Grant), 5,825 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
scan for nearest node of a specific path #224791
09/01/08 08:13
09/01/08 08:13
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hi,

is it possible to scan for the nearest node of a specific path?

For example:

I create two paths in WED, path_000 and path_001.
My entity is moving on path_000, and now I want to scan for the
nearest node of path_001, but path_000 and path_001 are so close that both are in the scan cone.

Best regards,
Pegamode.

Re: scan for nearest node of a specific path [Re: pegamode] #224794
09/01/08 08:33
09/01/08 08:33
Joined: Jul 2000
Posts: 28,075
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,075
Frankfurt
There is no specific function for that, but you can use path_set to path_001, then get the positions of all nodes with path_getnode, and compare their distances for the nearest node.

Re: scan for nearest node of a specific path [Re: jcl] #224797
09/01/08 08:39
09/01/08 08:39
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hmm ... could be very slow for paths with a lot of nodes?!?

Would be good if path_scan could scan for a specific path in future versions.

Re: scan for nearest node of a specific path [Re: pegamode] #224798
09/01/08 08:46
09/01/08 08:46
Joined: Jul 2000
Posts: 28,075
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,075
Frankfurt
Yes, a specific path_scan command would make sense. But the suggested method is not slow. Under lite-C it is as fast as a specific command.

Re: scan for nearest node of a specific path [Re: jcl] #224800
09/01/08 08:56
09/01/08 08:56
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Ok. I'll check it out.

Thanks.

Best regards,
Pegamode.


Moderated by  old_bill, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1