BehaviorAsset
Description
The BehaviorAsset object represents an asset with the
        Behavior asset type in the RoadRunner project. Behavior assets store user-defined parameters as
        .rrbehavior files that enable you to create custom simulation behaviors
      for actors. You can use a BehaviorAsset object to assign an
        .rrbehavior asset to an actor in your scenario. For more information on
      user-defined parameters in RoadRunner Scenario, see Scenario Parameters (RoadRunner Scenario).
Creation
You can create a BehaviorAsset object in these ways:
- The - getAssetfunction extracts an object for the asset of the specified asset type at the specified path relative to the- Assetfolder of the specified project. Specify the- assetTypeargument as- "BehaviorAsset"to extract a- BehaviorAssetobject.
- The - createAssetfunction creates an asset of the specified asset type at the specified path relative to the- Assetfolder of the specified project. Specify the- assetTypeargument as- "BehaviorAsset"to create a- BehaviorAssetobject. The extension you specify for the new asset must match the type specified for the- assetTypeargument.
Properties
Object Functions
| setPlatform | Assign platform to behavior asset | 
Examples
Version History
Introduced in R2025aSee Also
addActor | createAsset | CharacterAsset | MovableObjectAsset | VehicleAsset
Topics
- Scenario Parameters (RoadRunner Scenario)
- Built-In Behavior for Vehicles (RoadRunner Scenario)