Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Absolute distance along spline for Shape Extrusion Module
#1
I need to place different materials on a race track, but since I cannot do it via the v coordinate of UV, I am creating separate Volumes from the same spline.

To do this, I use the Shape Extrusion module and set the "From" values to the relative values that I need in the spline.

Is there a way to do it with absolute position rather than relative?

Thanks!
Reply
#2
Hi
The UI of that module takes relative distances/position, which should be multiplied by the length of the path to have the absolute distance/position. So the solutions I think about are, by order of needed coding:
  1. Do the division and input the result in the module
  2. Add a script to the Shape Extrusion's Game Object, scipt having an input field were you input the relative position and it does the computation and updates the From value via API.
  3. Modify the Shape Extrusion module's code to consider its inputs as absolute distances/positions
Did that help?
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#3
Yes, this helps. Thanks!
Reply
#4
You are welcome.
If and when you feel like it, please leave a review for the asset, that helps a lot.
Have a nice day
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Filling a closed spline dynamically rickgplus 1 225 04-16-2025, 08:56 AM
Last Post: _Aka_
  Absolute offset for shape extrudes rickgplus 1 235 03-21-2025, 12:37 PM
Last Post: _Aka_
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 284 02-03-2025, 09:34 AM
Last Post: _Aka_
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 1,087 01-20-2025, 12:25 PM
Last Post: _Aka_

Forum Jump: