Class ModifierPathRelativeTranslation
- Namespace
- FluffyUnderware.Curvy.Generator.Modules
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
-
ObjectComponentBehaviourMonoBehaviourDTVersionedMonoBehaviourModifierPathRelativeTranslation
- Implements
- Inherited Members
Fields
InPath
[HideInInspector]
[InputSlotInfo(typeof(CGPath), Name = "Path A", ModifiesData = true)]
public CGModuleInputSlot InPath
Field Value
OutPath
[HideInInspector]
[OutputSlotInfo(typeof(CGPath))]
public CGModuleOutputSlot OutPath
Field Value
Properties
Angle
The translation angle, in degrees
public float Angle { get; set; }
Property Value
LateralTranslation
The translation distance
public float LateralTranslation { get; set; }
Property Value
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
Methods
OnSlotDataRequest(CGModuleInputSlot, CGModuleOutputSlot, params CGDataRequestParameter[])
public CGData[] OnSlotDataRequest(CGModuleInputSlot requestedBy, CGModuleOutputSlot requestedSlot, params CGDataRequestParameter[] requests)
Parameters
requestedByCGModuleInputSlotrequestedSlotCGModuleOutputSlotrequestsCGDataRequestParameter[]
Returns
- CGData[]