Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extrusion does not match Controller position
#1
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?
Reply


Messages In This Thread
Extrusion does not match Controller position - by JasperBPT - 05-26-2020, 08:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  Set Volume to the Volume Controller at Runtime pako88 2 10 04-08-2024, 03:26 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_

Forum Jump: