Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
access to Path Range
#3
I think I figured it out. Here is my working code if anyone wants to do something similar:

        public GameObject splineControllerObject;
        public float controllerPosition = 0;

        void LateUpdate () {
                float position = splineControllerObject.GetComponent<SplineController> ().Position;
                float length = splineControllerObject.GetComponent<SplineController> ().Length;
                controllerPosition = position / length;
                GetComponent<FluffyUnderware.Curvy.Generator.Modules.BuildShapeExtrusion> ().From = controllerPosition;
        }
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
  Rasterized Path Range issue proton 3 12 22 minutes ago
Last Post: proton
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  Curvy discards Input Spline Range VoltDriver 3 5 11-28-2023, 07:14 PM
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: