- Home /
Getting vectors on an object every so many units
I have a single game object that is essentially a long line that curves and goes up and down. What I'm trying to do is generate some text along this line every so many units. Let's say every 100 units along the line some text should appear. My issue is I have no idea how to get the Vector on the line every 100 units. I think I need to know the following:
Total length of the line.
Way to traverse along the line every 100 units (or whatever I decide).
I know I can do it a very tedious and manual way by putting some game objects on top and getting the distance between those, but this won't give me a precise location for each one.
Below is an example of the model and the inspector window for it. I'm open to any advice. I'm awful at Vector math, so if it's possible to do this without getting involved in that too much that would be great.
Your answer
Follow this Question
Related Questions
Distance between a gameObject and a direction vector. 1 Answer
Moving object with vector3 lerp 0 Answers
Instantiate an object every x meters between two others. 1 Answer
Distance between a waypoint and the object 2 Answers
how to drop an object when the object is set in Camera.main.ScreenToWorldPoint 0 Answers