Method GetFalloff
GetFalloff(Vector3[], float, FalloffDirection)
Builds a falloff polygon by offsetting each anchor along the averaged corner normal.
public static Vector3[] GetFalloff(Vector3[] srcAnchors, float distance, FalloffDirection direction)
Parameters
srcAnchorsVector3[]Base polygon anchors.
distancefloatOffset distance used to build the falloff polygon.
directionFalloffDirectionWhether the falloff polygon should expand outward or inward from the base polygon.
Returns
- Vector3[]
A new anchor array describing the derived falloff polygon.
Remarks
For polygons with fewer than three anchors, the source anchors are copied unchanged because there is not enough topology to compute corner normals reliably.