Table of Contents

Class ModifierPathRelativeTranslation

Translates a path relatively to it's direction, instead of relatively to the world as does the TRS Path module.

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

Fields

InPath

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

Field Value

CGModuleInputSlot

OutPath

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

Field Value

CGModuleOutputSlot

Properties

Angle

The translation angle, in degrees

public float Angle { get; set; }

Property Value

float

LateralTranslation

The translation distance

public float LateralTranslation { get; set; }

Property Value

float

Multiplier

Defines a translation multiplier relatively to the Relative Distance of a point on the path.

public AnimationCurve Multiplier { get; set; }

Property Value

AnimationCurve

Remarks

You will need to set this module's Dirty to true yourself if you modify the AnimationCurve without setting a new one

PathIsClosed

public bool PathIsClosed { get; }

Property Value

bool

Methods

OnSlotDataRequest(CGModuleInputSlot, CGModuleOutputSlot, params CGDataRequestParameter[])

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

Parameters

requestedBy CGModuleInputSlot
requestedSlot CGModuleOutputSlot
requests CGDataRequestParameter[]

Returns

CGData[]