Class ConnectedControlPointsSelector
- Namespace
- FluffyUnderware.Curvy.Controllers
A class used by SplineController to define custom selection logic to select between the possible connected splines when the controller reaches a CurvyConnection
public abstract class ConnectedControlPointsSelector : DTVersionedMonoBehaviour
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourDTVersionedMonoBehaviourConnectedControlPointsSelector
Methods
SelectConnectedControlPoint(SplineController, CurvyConnection, CurvySplineSegment)
Select, from the current connection, a Control Point to continue moving through.
public abstract CurvySplineSegment SelectConnectedControlPoint(SplineController caller, CurvyConnection connection, CurvySplineSegment currentControlPoint)
Parameters
callerSplineControllerThe spline controller that is calling this selector
connectionCurvyConnectionThe connection the caller reached and from which it needs to select a Control Point to continue the movement on
currentControlPointCurvySplineSegmentthe Control Point, part of the connection, the controller is at.
Returns
- CurvySplineSegment
The control point that the should continue its movement on