Table of Contents

Class ConformPath

public class ConformPath : CGModule, IOnRequestProcessing, IPathProvider
Inheritance
Object
Component
Behaviour
MonoBehaviour
DTVersionedMonoBehaviour
ConformPath
Implements
Inherited Members

Fields

InPath

[HideInInspector]
[InputSlotInfo(typeof(CGPath), Name = "Path", ModifiesData = true)]
public CGModuleInputSlot InPath

Field Value

CGModuleInputSlot

OutPath

[HideInInspector]
[OutputSlotInfo(typeof(CGPath))]
public CGModuleOutputSlot OutPath

Field Value

CGModuleOutputSlot

Properties

Direction

The direction to raycast in

public Vector3 Direction { get; set; }

Property Value

Vector3

LayerMask

The layers to raycast against

public LayerMask LayerMask { get; set; }

Property Value

LayerMask

MaxDistance

The maximum raycast distance

public float MaxDistance { get; set; }

Property Value

float

Offset

Defines an offset shift along the raycast direction

public float Offset { get; set; }

Property Value

float

PathIsClosed

public bool PathIsClosed { get; }

Property Value

bool

Warp

If enabled, the entire path is moved to the nearest possible distance. If disabled, each path point is moved individually

public bool Warp { get; set; }

Property Value

bool

Methods

Conform(CGPath, Transform, LayerMask, Vector3, float, float, bool)

Conforms a path by projecting it on top of objects (with a collider) of a specific layer

public static void Conform(CGPath path, Transform pathTransform, LayerMask layers, Vector3 projectionDirection, float offset, float rayLength, bool warp)

Parameters

path CGPath
pathTransform Transform
layers LayerMask
projectionDirection Vector3
offset float
rayLength float
warp bool

If true, the projected path will keep its shape

OnSlotDataRequest(CGModuleInputSlot, CGModuleOutputSlot, params CGDataRequestParameter[])

public CGData[] OnSlotDataRequest(CGModuleInputSlot requestedBy, CGModuleOutputSlot requestedSlot, params CGDataRequestParameter[] requests)

Parameters

requestedBy CGModuleInputSlot
requestedSlot CGModuleOutputSlot
requests CGDataRequestParameter[]

Returns

CGData[]