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
  How to get length starting from one spline to connected nth spline Dragon-3623 1 1 05-14-2024, 04:52 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 12 04-03-2024, 03:16 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_

Forum Jump: