Curvy  8.3.0
NearestSplinePoint Class Reference
+ Inheritance diagram for NearestSplinePoint:
+ Collaboration diagram for NearestSplinePoint:

Detailed Description

Given a CurvySpline and an input position, this class will provide you with the nearest point to that position on the given spline. The nearest position is provided either in an OnUpdated event, or as an override of the position of the TargetPosition

This script simply calls the CurvySpline.GetNearestPoint method. If you are a programmer, you don't need to go through this script, just call CurvySpline.GetNearestPoint

Public Attributes

UnityEventEx< Vector3 > OnUpdated = new UnityEventEx<Vector3>()
 At each update, this event is called with the result of the lookup More...
 
Transform SourcePosition
 A transform which position will be used as the input position for the lookup More...
 
CurvySpline Spline
 The CurvySpline on which the nearest position is searched for More...
 
Transform TargetPosition
 A transform which position will be updated with the nearest point on Spline to Source Position More...
 
CurvyUpdateMethod UpdateIn
 When to run the lookup More...
 

Member Data Documentation

UnityEventEx<Vector3> OnUpdated = new UnityEventEx<Vector3>()

At each update, this event is called with the result of the lookup

Transform SourcePosition

A transform which position will be used as the input position for the lookup

CurvySpline Spline

The CurvySpline on which the nearest position is searched for

Transform TargetPosition

A transform which position will be updated with the nearest point on Spline to Source Position

When to run the lookup


The documentation for this class was generated from the following file: