Houge
Member
|
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 |
|
Zervox
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|