varyCollisionProperties
R2026bSyntax
Description
Add-On Required: This feature requires the Automated Driving Toolbox Test Suite for Euro NCAP Protocols add-on.
varyCollisionProperties(
adds property variations for a collision between a pair of actors,
variations,actor1ID,actor2ID,Name=Value)actor1ID and actor2ID, in the
variationProperties object variations by using one
or more name-value arguments.
varyCollisionProperties(
adds property variations for a collision specified by the variations,collisionObj,Name=Value)collision object
collisionObj in the variationProperties object
variations by using one or more name-value arguments.
Examples
Input Arguments
Name-Value Arguments
Limitations
The collision side of an actor in the seed scenario must match the collision side of that actor for which you generate variations.
If the seed scenario contains two intersecting trajectories, the
generateVariantsfunction can create a scenario variant with a collision. However, if the two actors are traveling head-on or the two trajectories are overlapping, then the function cannot create a collision variant.
Tips
To apply collision variations to your seed scenario, use the
generateVariantsfunction.The actor collision points
Actor1CollisionFractionandActor2CollisionFractionare relative to their respective collision sides,Actor1CollisionSideandActor2CollisionSide.You can find the collision side of an actor in the seed scenario by referring to the
CollisionSidefield of thecollisionobject.

