# `ExMujoco.Types.Gain`
[🔗](https://github.com/d-led/ex.mujoco/blob/main/lib/ex_mujoco/types/gain.ex#L2)

`mjtGain`, from MuJoCo's headers, as numbers. All 7 values carry a number in the header.

# `t`

```elixir
@type t() :: integer()
```

# `affine`

```elixir
@spec affine() :: 1
```

mjGAIN_AFFINE is 1.

# `dcmotor`

```elixir
@spec dcmotor() :: 3
```

mjGAIN_DCMOTOR is 3.

# `fixed`

```elixir
@spec fixed() :: 0
```

mjGAIN_FIXED is 0.

# `muscle`

```elixir
@spec muscle() :: 2
```

mjGAIN_MUSCLE is 2.

# `pid`

```elixir
@spec pid() :: 5
```

mjGAIN_PID is 5.

# `so3`

```elixir
@spec so3() :: 4
```

mjGAIN_SO3 is 4.

# `to_atom`

```elixir
@spec to_atom(integer() | atom()) :: atom() | nil
```

The name behind an integer. An atom is already one.

# `to_integer`

```elixir
@spec to_integer(t() | atom()) :: integer() | nil
```

The integer behind a name. An integer is already one.

# `user`

```elixir
@spec user() :: 6
```

mjGAIN_USER is 6.

# `values`

```elixir
@spec values() :: [{atom(), integer()}]
```

Every value, as `{name, integer}`, in the order the header lists them.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
