Quantcast
Channel: Questions in topic: "get"
Viewing all articles
Browse latest Browse all 215

How do I get an objects position once?

$
0
0
So, I'm creating this game where you fight against giants. The giants are moved by navMeshAgents and they use a RayCast to check there's nothing in between them and the player (like walls and such) to enable and disable the navMesh. The problem is that if a giant is following a player and that player goes behind a wall the giant will stop immediately, looking unnatural. I want to get the position the player had when it hid from the giant so the giant can go up to that last position and stop there, looking a bit more natural. Thank you in advance :)

Viewing all articles
Browse latest Browse all 215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>