Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting reference to Generator and InputSplinePath Spline
#4
Needed to add
using FluffyUnderware.Curvy.Controllers;
using FluffyUnderware.Curvy.Generator; // This and
using FluffyUnderware.Curvy.Generator.Modules; // This one
using FluffyUnderware.DevTools;

and then all worked with collider that I got from:
private void OnCollisionEnter(Collision other) {
CurvyGenerator generator = other.gameObject.GetComponent<CGMeshResource>().transform.parent.GetComponent<CreateMesh>().Generator;
CurvySpline inputSplinePathModules = generator.FindModules<InputSplinePath>(true)[0].Spline;
}

if someone needs it.
Reply


Messages In This Thread
RE: Getting reference to Generator and InputSplinePath Spline - by velikizlivuk - 08-15-2023, 11:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to duplicate a spline with an offset Kapistijn 8 1,289 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 644 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,429 07-29-2025, 09:15 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 6,163 07-13-2025, 07:11 PM
Last Post: _Aka_

Forum Jump: