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
  How to expand/contract path? Ferdinand 5 19 10-12-2022, 02:31 PM
Last Post: _Aka_
  How can I find the point on the spline after applying with offset angle+radius? Chanon 1 3 10-01-2022, 11:50 AM
Last Post: _Aka_
Question Spline path "Range" option: how to go from end to start CP? niuage 4 12 03-07-2022, 10:48 AM
Last Post: niuage
  best way to rotate, change offset, and inset position of splinecontroller object smackledorf 1 19 01-17-2022, 01:39 PM
Last Post: _Aka_

Forum Jump: