- Home /
LineRenderer static movement
Howdy! It's me again, back at it with another possibly dumb question because I assume it's surely got a simpler solution than what I'm thinking.
I have a rhythm game with two notes, single and long notes. I want to focus on the long notes.
My long note works by in fact, creating a third secret tail note which has no sprite renderer. I use this to trail behind my long note.
My long note has a LineRenderer component attached, which, while using world space, keeps the position of its first point, the starting point, the same as the note itself, and the second point, the tail, the same as a tail note.
However, my game has a moving lane! So when I move my lane up and down or rotate it, the notes all follow suit and keep casually making their way towards the judge line. Simple, except not really! This is my problem:
Whenever I move my long notes, their LineRenderer....sort of trail, like it's being dragged.
Example: If my long note moves upwards, the LineRenderer tail point trails behind it. Even though even the invisible tail note moves along as well, for some reason, the LineRenderer still trails behind the front point rather than being all...you know, static, moving with the front bit instead of dragging. This might just be an unchangeable property of LineRenderers, but I'd like to make sure and thought I'd ask.
Pictured: Lane moving downward. Long note front on the judge line, the green note is the tail note visualized, but instead of the tail of the LineRenderer following it, it trails behind. I don't want this!
Thank you!
Your answer
Follow this Question
Related Questions
Unity 3D 2018.1 - Save 0 Answers
Moving from Java to Unity 4 Answers
How do i cast mesh like a linerenderer? 0 Answers
Rhythm Game Out of Sync (C#) 1 Answer
Problem with Line Renderer 1 Answer