If you have cars of different types in your model (e.g. car, lorry, bus, etc) with specific custom attributes (car speed, length, etc.) and you want them to look different at model runtime, you should create custom car types and generate cars of different car types in your model. This document describes how to do it.
Specify the parameters for this car type. For example, let us create a parameter for the vehicle's speed. Click <add new...> in the list to create new parameter.
When you have finished, click Finish at the bottom of the wizard.
The graphical diagram of the created car type will open. You will see the chosen car animation there and the parameters you have defined in the Wizard.
Here you can modify the car animation. If you have not set any animation shape for this car type in the Car Type creation wizard, you can add your custom 3D object or 2D figure here on the car type diagram, putting the figure center in the point (0,0)). This figure will be used in the model to animate cars of this particular type.
To generate the cars of a custom type you should choose this type (e.g. Bus) in the New car parameter of the corresponding CarSource block. Then the cars in this flowchart will be of this custom type, and you will be able to use car in the flowchart blocks to explicitly address the additional functionality of this car type .
For example, you can use the previously specified speed parameter to set up the speed for Bus cars generated by CarSource. In both Initial speed and Preferred speed properties of the CarSource, type car.speed