Display Height - Discrete
This behavior allows you to specify a corresponding list of heights and numeric values. When a specified field is less than or equal to one of the numeric values, the height of the agent is assigned based on the corresponding height.
Published by
Shortname
@hash/display_height_discrete.js
Description

This behavior allows you to specify a corresponding list of heights and numeric values. When a specified field is less than or equal to one of the numeric values, the height of the agent is assigned based on the corresponding height.

Agent Properties

An agent with this behavior needs the following corresponding agent properties:

{
  ...
  "height_discrete": {
    "field": string, // the field whose values will drive the height of the agent
    "field_values": [number], // the discrete values of the field to be matched
    "discrete_heights": [number] // the corresponding heights for each discrete field value
  }
}