> 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/extras/magnetic-forces.md).

# Magnetic Forces

## Magnetic Source

This will create a zone where any rigidbody with a **Magnetic Body** component will continuously pull or push that body using rigidbody forces while it's in the zone based on its effect, strength, and force distance curve

<div align="left"><img src="https://2959669391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5zKO0EvOjzUDeT2aiFk3%2Fuploads%2FPYr9TUoPPStUgqikmdJR%2Fimage.png?alt=media&amp;token=e9f628d7-7813-4386-9074-c90a77202774" alt=""></div>

`Magnetic Effect` what type of force to add to the objects within the radius

* `Attractive` will pull magnetic bodies to the center
* `Repulsive` will push magnetic bodies away from the radius

`Strength` how much force to apply to the magnetic body

`Radius` the radius of the source (affected by scale)

`Force Mode` which force mode to use when applying force

`Force Distance Curve` the force to apply based on the distance from the center divided by the radius, curve x range should stay between 0-1. A line going up from 0-1 will have higher forces on the edge of the force zone and less in the center. A line going flat will have consistent force regardless of the distance while in the radius

`Magnetic Index` must match the magnetic index of the **Magnetic Body** to apply forces

<div align="left"><img src="https://2959669391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5zKO0EvOjzUDeT2aiFk3%2Fuploads%2FXJYd5BmcbzJzpGubpZ27%2Fimage.png?alt=media&amp;token=f0d8a10a-7706-44da-bb71-810f1b7f92c4" alt=""></div>

`Magnetic Index` must match the magnetic index of the **Magnetic Source** to apply forces

`Strength Multiplyer` will amplify the forces of the Magnetic source applied to this object
