What I try to do: Make a function which will find the furthest distance the character can be when placing a building, interacting with a building or mining a resource.
My problem: The rule for when the character is 10 or 2.7 units away from something seems to be irregular, which is pretty ...
Thanks for the fast reply. That seems to solve it.. strange.
Is this due to the fact, that I actually shouldn't be able to place it with east or west as the direction if the max distance of 10 rule was applied when placing buildings, which are not square? When I place the steam engine ...
What I try to do: I am developing a tool which (hopefully) will make it a lot easier for players to get into tool assisted speed runs. I therefore need to be able to place buildings as far away as the default game will allow me.