How can I get GridNodeBase where the position is Int3(relate to node.position)?
I don’t want convert the position to Vector3 and call GetNearest (since it may not deterministic)
Another question, how can I check that the position is out of grid area?
Sorry for the late answer.
This is not possible at the moment, only a Vector3. However I wonder why you need this? If you have the Int3, then presumably you must have had the node instance at some point, so why not just store that?
I’m developing deterministic game so the character’s position and movement implement by Vector3Int instead of Vector3. Sometime I want to know my character XZ coordinate in GridGraph. Right now I’m using NodeSize for calculation and it work.
Thank for response