# Falloff

{% embed url="<https://youtu.be/WX54t_UKnOE>" %}

### **Intro**

**Falloffs** can be used to isolate the strength of most [Behaviours](https://scenegroup.gitbook.io/cavalry/nodes/behaviours). By default, a **Falloff** outputs a value of 1 at its center which *falls off* to 0 at its edges. This value is used as a multiplier for the **Strength** of the Behaviour(s) it is connected to and the Graph can be used to determine the speed the values *fall off* at.

### UI

[Common Attributes](https://scenegroup.gitbook.io/cavalry/nodes/behaviours/common-attributes-behaviours) +

**Strength** - a multiplier for the **Falloff Graph** attribute.

**Shape Type**:

* **Circle** - the **Falloff Graph** is sampled radially.
* **Rectangle** - the **Falloff Graph** is sampled in x and y.
* **Linear** - the **Falloff Graph** is sampled in 1 dimension.

**Size** - set the size of the Falloff.

**Falloff Graph** - see [Graph Attribute](https://scenegroup.gitbook.io/cavalry/user-interface/widgets/graph-attribute).

**Probability** - the Falloff's value is used to produce a 1 or 0 (true or false) value. For example, a Falloff value of **0.5** would give you a **50%** chance of getting a **1**.

**Seed** - changing this value will affect **Probability**.&#x20;

**Custom Color** - when checked the **Falloff** will use the value set in **Color**. When unchecked the **Label Color** is used (the color used in the [Scene Window](https://scenegroup.gitbook.io/cavalry/user-interface/menus/window-menu/scene-window)).

**Color** - set a color for the Falloff.

**Enabled** - when unchecked, the Falloff will output a value of 1 (the result being the same as if the Falloff wasn't there).

{% hint style="info" %}
A **Falloff** can also be **Enabled/Disabled** in the [Scene Window](https://scenegroup.gitbook.io/cavalry/user-interface/menus/window-menu/scene-window) by selecting it and choosing **Enable/Disable Falloff(s)** in the right click contextual menu.
{% endhint %}

{% hint style="success" %}
See [Common Attributes](https://scenegroup.gitbook.io/cavalry/nodes/behaviours/common-attributes-behaviours) (Falloff tab) for using **Layer Modes** with [Behaviours](https://scenegroup.gitbook.io/cavalry/nodes/behaviours).
{% endhint %}
