> For the complete documentation index, see [llms.txt](https://earnest-robot.gitbook.io/auto-hand-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://earnest-robot.gitbook.io/auto-hand-docs/auto-hand/hand/hand-follow.md).

# Hand Follow

## Hand Follow

The `HandFollow` class is responsible for managing the physics-based movement of a hand object in Unity, ensuring it follows a target transform with specified constraints on movement and rotation. This class is designed to work with the `Hand` component and provides various settings for fine-tuning the following behavior.

<figure><img src="/files/akjsPvQ3bjvuIU7AN5Uy" alt=""><figcaption></figcaption></figure>

#### Move to Settings

`Max Move To Distance` : The maximum allowed distance for moving to the target position.

`Max Move To Angle` : The maximum allowed angle for rotating to the target rotation.

`Max Follow Distance` : The distance at which the hand returns to the target if it gets stuck.

`Max Velocity` : The maximum allowed velocity of the hand.

#### Position Settings

`Follow Position Strength` : The speed at which the hand follows the target position.

`Start Drag` : The initial drag value of the hand.

`Drag Damper` : The drag multiplier to use when within a certain distance from the target.

`Drag Damper Distance` : The distance at which the drag damper starts to take effect.

`Min Velocity Change` : The minimum change in velocity for the hand.

`Min Velocity Distance Multi` : A multiplier for the minimum velocity change based on distance.

#### Rotation Settings

`Follow Rotation Strength` : The speed at which the hand follows the target rotation.

`Start Angular Drag` : The initial angular drag value of the hand.

`Angle Drag Damper` : The angular drag multiplier to use when within a certain angle distance from the target.

`Angle Drag Damper Distance` : The angle distance at which the angular drag damper starts to take effect.

#### Mass Settings

`Min Mass` : The minimum mass of the hand. If you want this to work like Auto Hand V3.3 and earlier, set the min mass equal to the max mass

`Max Mass` : The maximum mass of the hand.

`Held Mass Divider` : A divider to reduce the mass of held objects.

`Distance Mass Difference` : A factor to adjust the mass based on distance.

`Distance Mass Max Distance` : The maximum distance for mass adjustment.

`Angle Mass Difference` : A factor to adjust the mass based on angle.

`Angle Mass Max Angle` : The maximum angle for mass adjustment.

Internal Public Getters

`Last Angular Velocity` : The last recorded angular velocity of the hand.

`Last Velocity` : The last recorded velocity of the hand.

`Last Follow Delta Position` : The change in position since the last frame.

`Last Follow Delta Rotation` : The change in rotation since the last frame.

`Target Move To Position` : The target position to move to.

`Target Move To Rotation` : The target rotation to move to.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/hand/hand-follow.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.
