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
  Duplicate Prefab along path rickgplus 0 3 7 hours ago
Last Post: rickgplus
  Can't set CG Path Controller j95677 4 27 10-04-2024, 06:55 PM
Last Post: j95677
  Additional offset to Follow behaviour Ayyappa 3 26 04-30-2024, 01:35 PM
Last Post: _Aka_
  Rasterized Path Range issue proton 7 36 04-30-2024, 11:17 AM
Last Post: _Aka_

Forum Jump: