Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
access to Path Range
#2
Ok, I think I figured a few things out after spending bit more time with the API docs. "From" is essentially from where "Range" is derived.


This code does mostly what I want:



newPosition = splineControlled.GetComponent<SplineController> ().RelativePosition;

GetComponent<FluffyUnderware.Curvy.Generator.Modules.BuildShapeExtrusion> ().From = newPosition;


I'm trying to create a "reverse trail renderer" where the trail draws ahead of the spline controlled object. I was hoping to just connect the position of the spline controlled object to the From attribute, but the above code doesn't keep the generated mesh in sync with the spline controlled object; they meet-up about every third or fourth CP, but then the generated mesh races ahead.

I'm guessing this is an interpolation issue?
Reply


Messages In This Thread
access to Path Range - by maruska - 09-02-2016, 11:36 PM
RE: access to Path Range - by maruska - 09-03-2016, 06:24 AM
RE: access to Path Range - by maruska - 09-06-2016, 06:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Duplicate Prefab along path rickgplus 1 1,538 01-23-2025, 10:09 AM
Last Post: _Aka_
  Can't set CG Path Controller j95677 4 3,213 10-04-2024, 06:55 PM
Last Post: j95677
  Rasterized Path Range issue proton 7 4,216 04-30-2024, 11:17 AM
Last Post: _Aka_
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 5,078 04-17-2024, 10:57 AM
Last Post: _Aka_

Forum Jump: