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
getAsset
function extracts an object for the asset of the specified asset type at the specified path relative to theAsset
folder of the specified project. Specify theassetType
argument as"BehaviorAsset"
to extract aBehaviorAsset
object.The
createAsset
function creates an asset of the specified asset type at the specified path relative to theAsset
folder of the specified project. Specify theassetType
argument as"BehaviorAsset"
to create aBehaviorAsset
object. The extension you specify for the new asset must match the type specified for theassetType
argument.
Properties
Examples
Version History
Introduced in R2025a
See Also
addActor
| createAsset
| CharacterAsset
| MovableObjectAsset
| VehicleAsset
Topics
- Scenario Parameters (RoadRunner Scenario)
- Built-In Behavior for Vehicles (RoadRunner Scenario)