05-26-2020, 08:04 AM
Hi
I am having a bit of trouble.
My aim is to generate a spline that I willl use as the "map" like you would see in a lot of mobile games. It has nodes along it that are the levels, and as you complete nodes, the line extrudes out to the next node so you can see where you are up to.
In order to get this to work, what I am trying is:
Place the controllers along the spline using relative position. (this works fine)
At runtime, I get the reletive position of the controller, and then I set the extrude "to" value at that same value.
However there seems to be a bit of inaccuracy. It gets close however when the value is < 0.5 then the extrusion seems to overshoot or go past the controller. If the value of the "to" is > 0.5 then the extrusion seems to not reach the controller.
Is there some odd calculation that goes on? is it somehow calculating the extrusion reletive to the control points the current extrusion Is between while the controllers are relative to the distance of the entire curve?
I am having a bit of trouble.
My aim is to generate a spline that I willl use as the "map" like you would see in a lot of mobile games. It has nodes along it that are the levels, and as you complete nodes, the line extrudes out to the next node so you can see where you are up to.
In order to get this to work, what I am trying is:
Place the controllers along the spline using relative position. (this works fine)
At runtime, I get the reletive position of the controller, and then I set the extrude "to" value at that same value.
However there seems to be a bit of inaccuracy. It gets close however when the value is < 0.5 then the extrusion seems to overshoot or go past the controller. If the value of the "to" is > 0.5 then the extrusion seems to not reach the controller.
Is there some odd calculation that goes on? is it somehow calculating the extrusion reletive to the control points the current extrusion Is between while the controllers are relative to the distance of the entire curve?