Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
path offset
#1
Hello, I wonder if there's anyway to use spline path mesh builder with an offset to create parallel lines from spline, or if it's possible to use a prefab in anyway (the script will only allow to use meshes).

I want to create fences for a road.

Thank you

PD: I'm spanish so I hope I'm writing understandable questions Smile
Reply
#2
(10-01-2013, 10:22 AM)checkitout Wrote: Hello, I wonder if there's anyway to use spline path mesh builder with an offset to create parallel lines from spline, or if it's possible to use a prefab in anyway (the script will only allow to use meshes).
Two options:
You can use SplinePathCloneBuilder (Prefab's support is in work, just use existing GameObjects for now) to clone geometry. Just parent your fence brick to an empty GameObject (offset it properly) and use that to feed the CloneBuilder.

If you use the SplinePathMeshBuilder, the component will use the Spline's position but transform it in local space of the GameObject holding the SplinePathMeshBuilder unless you enable the "Use World Position" property. So just offset the GameObject holding the MeshBuilder.

Jake
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Additional offset to Follow behaviour Ayyappa 3 11 04-30-2024, 01:35 PM
Last Post: _Aka_
  Rasterized Path Range issue proton 7 26 04-30-2024, 11:17 AM
Last Post: _Aka_
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
Wink Train carriage with 2 bogies following a path arcadeperfect 9 27 08-25-2023, 02:56 PM
Last Post: arcadeperfect

Forum Jump: