Easy Way To Get TileIndex At Set Position
Posted: Tue Sep 28, 2021 7:24 pm
Real quick question, I have random vector3 coordinates being created for my basic 3d animal roaming behavior. The behavior is working fine. The anima wonders aimlessly within a set bound range, which also checks for collisions before setting it up.
However, I wanted to check the tile under them real quick, so I could keep them from walking over water or wandering to far into public roads. It is real easy to do with the player because of the built in objects for this. However, I can't find anything similar for a random vector3 position. Is there anything I'm missing the the API for this? I want to drop in the next move location vector3 position and get back the tile index it is on.
However, I wanted to check the tile under them real quick, so I could keep them from walking over water or wandering to far into public roads. It is real easy to do with the player because of the built in objects for this. However, I can't find anything similar for a random vector3 position. Is there anything I'm missing the the API for this? I want to drop in the next move location vector3 position and get back the tile index it is on.