DistanceToPointCondition
Description
A DistanceToPointCondition object represents a
Distance To Point condition in the RoadRunner scenario logic. The Distance To Point condition specifies for
the associated phase to end when an actor is a certain distance away from a specified point.
Specifying DistanceToPointCondition as the condition type when creating an
end or fail condition in your scenario adds a Distance To Point condition
to the specified phase in the scenario logic. You can use the
DistanceToPointCondition object to programmatically modify the attributes
of the corresponding Distance To Point condition by changing the property
values of the object.
Creation
You can create a DistanceToPointCondition object in these ways:
The
setEndConditionfunction creates and assigns a condition of the specified type to the end of a specified phase. Specify theconditionTypeargument as"DistanceToPointCondition"to create aDistanceToPointConditionobject associated with the specified phase.The
setFailConditionfunction assigns a condition of the specified type to the Fail Conditions of the scenario root phase. Specify theconditionTypeargument as"DistanceToPointCondition"to create aDistanceToPointConditionobject associated with the scenario Fail Conditions.
Properties
Examples
Version History
Introduced in R2025a