Unity Spline Editor
An editor tool to create splines in Unity
Public Member Functions | Properties | List of all members
CurvePoint Class Reference

Represents and anchor point with two control points More...

Public Member Functions

 CurvePoint (Vector3 anchorPt, Vector3 controlPtLeft, Vector3 controlPtRight)
 
Vector3 GetForwardDirection (PointType type, Transform parentTransform=null)
 Gets wherever the control point or anchor is pointing. If a transform is passed, it converts the direction to that transform's local space. More...
 

Properties

Vector3 this[PointType pointType] [get, set]
 Lets you get one of the three points by type rather than by index More...
 

Detailed Description

Represents and anchor point with two control points

Member Function Documentation

◆ GetForwardDirection()

Vector3 CurvePoint.GetForwardDirection ( PointType  type,
Transform  parentTransform = null 
)

Gets wherever the control point or anchor is pointing. If a transform is passed, it converts the direction to that transform's local space.

Parameters
typeAnchor, left control or right control point?
Returns

Property Documentation

◆ this[PointType pointType]

Vector3 CurvePoint.this[PointType pointType]
getset

Lets you get one of the three points by type rather than by index

Parameters
pointTypeThe type of the point to get
Returns

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