AvoidanceManagerAddAvoidPolygonT Method |
Namespace:
ff14bot.Managers
Assembly:
RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax public static AvoidInfo AddAvoidPolygon<T>(
Func<bool> condition,
Func<Vector3> leashPointProducer,
float leashRadius,
Func<T, float> rotationProducer,
Func<T, float> scaleProducer,
Func<T, float> heightProducer,
Func<T, Vector2[]> pointsProducer,
Func<T, Vector3> locationProducer,
Func<IEnumerable<T>> collectionProducer,
Func<T, bool> objectValidator = null,
bool ignoreIfBlocking = false,
AvoidancePriority priority = AvoidancePriority.Medium
)
Parameters
- condition
- Type: SystemFuncBoolean
The condition. - leashPointProducer
- Type: SystemFuncVector3
The leash point producer. Can be null. Used in conjunction with [!:leashRadius] - leashRadius
- Type: SystemSingle
The leash radius.
If [!:leashPointProducer] is not null,
bot will not navigate furthar than this distance from point returned from [!:leashPointProducer] while running out of avoid - rotationProducer
- Type: SystemFuncT, Single
Produces the polygon's rotation. - scaleProducer
- Type: SystemFuncT, Single
Produces the polygon's scale - heightProducer
- Type: SystemFuncT, Single
Produces the height of the polygon.
Half of the produced height extends above location produced by [!:locationProducer] and the other half below
- pointsProducer
- Type: SystemFuncT, Vector2
Produces the points that form the polygon - locationProducer
- Type: SystemFuncT, Vector3
Produces the location.
Polygon is rotated and scaled around produced location on the xy plane.
- collectionProducer
- Type: SystemFuncIEnumerableT
Produces a collection of objects that should be avoided. - objectValidator (Optional)
- Type: SystemFuncT, Boolean
Indecates whether objects produced by [!:collectionProducer] are valid - ignoreIfBlocking (Optional)
- Type: SystemBoolean
Ignore avoid if set to true and it can't be navigated around. - priority (Optional)
- Type: ff14bot.Pathing.AvoidanceAvoidancePriority
The priority.
Type Parameters
- T
Return Value
Type:
AvoidInfoSee Also