Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Quad), 755 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 3 of 5 1 2 3 4 5
Re: Pathfinder [Re: Tai] #301590
12/11/09 20:57
12/11/09 20:57
Joined: Jul 2008
Posts: 24
Russia
mr_x Offline OP
Newbie
mr_x  Offline OP
Newbie

Joined: Jul 2008
Posts: 24
Russia
Sorry, I don't know how algorithm for this technique looks like. Only thing I have in mind, not pathfinding related is: when entity reaches one waypoint, you can turn it slowly to the next waypoint, while entity will keep moving forward. It will smooth movement a little bit.

Re: Pathfinder [Re: mr_x] #301607
12/11/09 22:32
12/11/09 22:32
Joined: Nov 2004
Posts: 55
Michigan
S
splashmaker Offline
Junior Member
splashmaker  Offline
Junior Member
S

Joined: Nov 2004
Posts: 55
Michigan
I would use wall tracing depending on which way the path turns and lerp (linear interpolate) that with the distance to the node. From far away the entity would travel straight for the node, as it approaches the node it would get closer to the wall, and right next to the node the entity would hug the wall. Then reverse this for going away and midway to the next node do it again. You can do wall tracing by c_tracing 90 or -90 degrees relative to the motion of the entity, if you have a lot of entities you will want to only trace a few frames per second and record the value because c_trace is slow.

edit: Multiply the amount the entity goes towards the wall by the sin of the angle of the turn capped to 90 degrees. And thank you for this contribution!

Last edited by splashmaker; 12/11/09 23:01.
Re: Pathfinder [Re: splashmaker] #301635
12/12/09 10:00
12/12/09 10:00
Joined: Jul 2008
Posts: 24
Russia
mr_x Offline OP
Newbie
mr_x  Offline OP
Newbie

Joined: Jul 2008
Posts: 24
Russia
Interesting solution. I will try it when I will deal with pathfinding again, thanks.

Re: Pathfinder [Re: mr_x] #301728
12/13/09 13:02
12/13/09 13:02
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Originally Posted By: mr_x

Great! Thanks for the contribution.
Would you write a tutorial how it works?

Re: Pathfinder [Re: Frederick_Lim] #301754
12/13/09 19:18
12/13/09 19:18
Joined: Jul 2008
Posts: 24
Russia
mr_x Offline OP
Newbie
mr_x  Offline OP
Newbie

Joined: Jul 2008
Posts: 24
Russia
Actually it is a little bit difficult for me to write big texts in english =), so you'd better ask what you want here, and i tried to comment code as much as possible. I have used this tutorial to make this system: http://www.policyalmanac.org/games/aStarTutorial.htm

Re: Pathfinder [Re: mr_x] #301785
12/14/09 10:37
12/14/09 10:37
Joined: Nov 2003
Posts: 433
The Netherlands
T
Toon Offline
Senior Member
Toon  Offline
Senior Member
T

Joined: Nov 2003
Posts: 433
The Netherlands
Very usefull contribution, you should send this to acknex unlimited (resources@acknex.net) ! smile

Re: Pathfinder [Re: Toon] #319503
04/15/10 13:02
04/15/10 13:02
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline
Senior Member
NeoNeper  Offline
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
How I make to pass position of another entity in the map for the pathFind? Without being the position one of the mouse.


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: Pathfinder [Re: Tai] #320118
04/19/10 19:14
04/19/10 19:14
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline
Senior Member
NeoNeper  Offline
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
HI. I obtained to solve my first one doubts previously post.
Now I have another doubt.

I am trying to make pathFind to function in other entities at the same time. " would like to create a style; followPath" allies to follow them my to player using pathFind. Somebody could give a light to me?


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: Pathfinder [Re: NeoNeper] #320370
04/21/10 10:06
04/21/10 10:06
Joined: Dec 2007
Posts: 706
Schortens Germany
Landixus Offline
User
Landixus  Offline
User

Joined: Dec 2007
Posts: 706
Schortens Germany
Work this in all directions?

x y z


My Blog German: http://blog.quakeit.de/
www.quakeit.de ||
Airfix Game in Cooperation with:
www.3drt.com
Models Levels and Textures
Re: Pathfinder [Re: Landixus] #320657
04/23/10 15:31
04/23/10 15:31
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline
Senior Member
NeoNeper  Offline
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
helloooo .. somebodyyy..


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Page 3 of 5 1 2 3 4 5

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | 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