Class ConformPath
- Namespace
- FluffyUnderware.Curvy.Generator.Modules
public class ConformPath : CGModule, IOnRequestProcessing, IPathProvider
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourDTVersionedMonoBehaviourConformPath
- Implements
- Inherited Members
Fields
InPath
[HideInInspector]
[InputSlotInfo(typeof(CGPath), Name = "Path", ModifiesData = true)]
public CGModuleInputSlot InPath
Field Value
OutPath
[HideInInspector]
[OutputSlotInfo(typeof(CGPath))]
public CGModuleOutputSlot OutPath
Field Value
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
Offset
Defines an offset shift along the raycast direction
public float Offset { get; set; }
Property Value
PathIsClosed
public bool PathIsClosed { get; }
Property Value
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
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
pathCGPathpathTransformTransformlayersLayerMaskprojectionDirectionVector3offsetfloatrayLengthfloatwarpboolIf true, the projected path will keep its shape
OnSlotDataRequest(CGModuleInputSlot, CGModuleOutputSlot, params CGDataRequestParameter[])
public CGData[] OnSlotDataRequest(CGModuleInputSlot requestedBy, CGModuleOutputSlot requestedSlot, params CGDataRequestParameter[] requests)
Parameters
requestedByCGModuleInputSlotrequestedSlotCGModuleOutputSlotrequestsCGDataRequestParameter[]
Returns
- CGData[]