08-15-2023, 11:08 PM
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.
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.