Quantcast
Channel: Questions in topic: "follow"
Viewing all articles
Browse latest Browse all 536

Use trail renderer for path following?

$
0
0
Hey guys, I'm pretty new to C# and still am learning the basics. **Would really appreciate some guidance.** Had this idea of flying opponents chasing players spaceship in environment with obstacles. Is there a way for a gameobject to follow other gameobjects trajectory using its trail renderer component? I suppose it would involve ***setpositons*** or ***getpositions*** functions and storing the vertices on to temporary array for the chasing object to follow and destructing them afterwards. I though this would be a better way for the chasing vehicles to get destroyed in collision with obstacles (if the chasers would have different speed and delayed "reaction time" or offset target position) instead of using path finding.

Viewing all articles
Browse latest Browse all 536

Latest Images

Trending Articles



Latest Images

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