Hello,
I created a script that gets a target and then places a single marker on a path (in a while loop) until it hits that target.
I have some checks in place so the script safely ends and cleans up the markers.
I'm checking the x and y coordinates to "walk" towards the target successfully, however if the source and target are on different z coordinates, it will float in the air above them
(consider standing on a mountain, or some such).
I wanted to know if anyone had thoughts around how to ensure the markers always "touch solid ground" ? Is such a thing even possible?
I could technically slope the markers gradually with a function based upon the difference between source and target, but in theory that's just a diagonal line that could at some point go "under" the ground and be lost (it's important the player sees these markers).
Any ideas? Functions to make it "fall" ?
Thanks!