CollisionCondition
Description
A CollisionCondition
object represents a
Collision
condition in the RoadRunner scenario logic. The Collision
condition specifies for the
associated phase to end when the actor specified by FirstActor
collides
with the actor specified by SecondActor
. You can use the
CollisionCondition
object to programmatically modify the attributes of
the corresponding Collision
condition by changing the property values of
the object.
Creation
By default, RoadRunner Scenario automatically adds a Collision
condition to the scenario
Fail Conditions when you create a new scenario. However, you can also
create a CollisionCondition
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"CollisionCondition"
to create aCollisionCondition
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"CollisionCondition"
to create aCollisionCondition
object associated with the scenario Fail Conditions.
Properties
Examples
Version History
Introduced in R2025a