ChangeLongitudinalDistanceAction
Description
The ChangeLongitudinalDistanceAction
object represents a
Change Longitudinal Distance
action in the RoadRunner scenario logic. The Change Longitudinal Distance
action
specifies for the actor to change its forward distance relative to another actor using the
specified properties. You can use this action to maintain a constant longitudinal distance gap
between two actors during simulation. Specifying
ChangeLongitudinalDistanceAction
as the action type when adding an action
to your scenario adds a Change Longitudinal Distance
action to the
specified phase in the scenario logic. You can use the
ChangeLongitudinalDistanceAction
object to programmatically modify the
attributes of the corresponding Change Longitudinal Distance
action by
changing the property values of the object.
Creation
The addAction
function adds an
action of the specified type as a child to the specified phase. Specify the
actionType
argument as
"ChangeLongitudinalDistanceAction"
to create a
ChangeLongitudinalDistanceAction
object associated with the specified
phase.
Properties
Examples
Version History
Introduced in R2025a
See Also
addAction
| ChangeSpeedAction
| ChangeLaneAction
| ChangeLateralOffsetAction
| WaitAction
Topics
- Define Scenario Logic (RoadRunner Scenario)