LongitudinalDistanceToActorCondition
Description
A LongitudinalDistanceToActorCondition
object represents a
Longitudinal Distance To Actor
condition in the RoadRunner scenario logic . The Longitudinal Distance To Actor
condition
specifies for the associated phase to end when an actor reaches a certain longitudinal
distance from another actor. Specifying
LongitudinalDistanceToActorCondition
as the condition type when creating
an end or fail condition in your scenario adds a Longitudinal Distance To
Actor
condition to the specified phase in the scenario logic. You can use the
LongitudinalDistanceToActorCondition
object to programmatically modify
the attributes of the corresponding Longitudinal Distance To Actor
condition by changing the property values of the object.
Creation
You can create a LongitudinalDistanceToActorCondition
object in these ways:
The
setEndCondition
function creates and assigns a condition of the specified type to the end of a specified phase. Specify theconditionType
argument as"LongitudinalDistanceToActorCondition"
to create aLongitudinalDistanceToActorCondition
object associated with the specified phase.The
setFailCondition
function assigns a condition of the specified type to the Fail Conditions of the scenario root phase. Specify theconditionType
argument as"LongitudinalDistanceToActorCondition"
to create aLongitudinalDistanceToActorCondition
object associated with the scenario Fail Conditions.
Properties
Examples
Version History
Introduced in R2025a