# Physics Gadget Slider

This component Requires a [Configurable Joint](https://docs.unity3d.com/Manual/class-ConfigurableJoint.html), and the physical qualities of the slider will also be set through this configurable joint and rigidbody

<div align="left"><img src="/files/GrvubLbsuaKgbJLpuUDx" alt=""></div>

#### `Invert`:  When set to true, the value returned by the gadget is inverted. This can be used to reverse the direction or effect of the gadget's movement.

#### `Play Range`: Defines the minimum absolute value required for the gadget to return a non-zero value. For instance, with a play range of 0.1, the gadget must be moved 10% of its range to yield a result. This setting helps in creating a dead zone where minor movements are ignored.

#### `Threshold`:  This variable, with a minimum value of 0.01, defines the percentage (0-1) from the required value needed to trigger the associated events. For example, if the threshold is set to 0.1, the `OnMax` event is called at a value of 0.9, `OnMin` at -0.9, and `OnMid` at -0.1 or 0.1.

#### `Step Count`:  Steps determine which sections the lever will stop on. 0 will not create steps and only use the joint settings. 2 lock a gadget on on/off only. 100 will stop the gadget where you release it

#### `Start Step`:  The step the lever should start on

####

**`On Max Event`: This event is triggered based on the configurable joints limits minus the threshold**

**`On Mid Event`: This event is triggered based on the configurable joints limits minus the play**

**`On Min Event`: This event is triggered based on the configurable joints limits minus the threshold**

**`On Step Event`: This event is triggered when the gadget hits the given step along the range of the joint**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://earnest-robot.gitbook.io/auto-hand-docs/auto-hand/extras/physics-gadgets/physics-gadget-slider.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
