About Store Forum Documentation Contact
Donations:
178$/mo



Post Reply 
Game::World.path()
Author Message
Houge Offline
Silver Supporter

Post: #1
Game::World.path()
Hi, I just wanted to ask if the following functions are deterministic (will always return the same results with the same input), because I want to run them, for example, on Client and on Server, transferring only inputs over network.

Code:
Bool Game::World.path().find(...)C;
Bool Game::World.path().nearestSurface(...)C;

Thanks!
(This post was last modified: 03-12-2020 03:47 AM by Houge.)
03-12-2020 03:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #2
RE: Game::World.path()
no, recast navmesh is not deterministic to my knowledge.

Edit: also, even if the pathfinding and recast itself is deterministic, it still relies on your input, timestepping etc. so no way to be sure unless you were to test it yourself.
(This post was last modified: 03-12-2020 03:32 PM by Zervox.)
03-12-2020 03:25 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Game::World.path()
nearestSurface I think it could always return the same result.
as for 'find', it's possible too, but I can't really tell because all of this is operated by recast/detour library, so to be sure you could ask on that project website
https://github.com/recastnavigation/recastnavigation
03-13-2020 04:41 AM
Find all posts by this user Quote this message in a reply
Post Reply