# MotionUpdateJob<TValue, TOptions, TAdapter>.Motion

Stores one job entry's endpoints, timeline, clock and lifecycle state.

Namespace: MeatMotion

Assembly: MeatMotion

```csharp
public struct Motion : IMotionEase
```

[Runtime/Jobs/MotionUpdateJob.cs · L17](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L17)

## Start

Start value used by the adapter.

```csharp
public TValue Start;
```

[Runtime/Jobs/MotionUpdateJob.cs · L19](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L19)

## End

End value used by the adapter.

```csharp
public TValue End;
```

[Runtime/Jobs/MotionUpdateJob.cs · L19](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L19)

## Options

Adapter-specific options supplied to Evaluate.

```csharp
public TOptions Options;
```

[Runtime/Jobs/MotionUpdateJob.cs · L20](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L20)

## Duration

Duration of an interpolation interval, in seconds.

```csharp
public float Duration;
```

[Runtime/Jobs/MotionUpdateJob.cs · L21](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L21)

## Delay

Delay in seconds before the first pass or each loop.

```csharp
public float Delay;
```

[Runtime/Jobs/MotionUpdateJob.cs · L21](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L21)

## PlaybackSpeed

Playback multiplier applied to the selected clock's delta.

```csharp
public float PlaybackSpeed;
```

[Runtime/Jobs/MotionUpdateJob.cs · L21](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L21)

## Loops

Configured number of loops.

```csharp
public int Loops;
```

[Runtime/Jobs/MotionUpdateJob.cs · L22](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L22)

## CompletedLoops

Number of completed loops at the evaluation time.

```csharp
public int CompletedLoops;
```

[Runtime/Jobs/MotionUpdateJob.cs · L22](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L22)

## DelayType

Apply Delay before the first pass or before every loop.

```csharp
public DelayType DelayType;
```

[Runtime/Jobs/MotionUpdateJob.cs · L23](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L23)

## LoopType

Select Restart, Flip, Incremental or Yoyo for repeated passes.

```csharp
public LoopType LoopType;
```

[Runtime/Jobs/MotionUpdateJob.cs · L24](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L24)

## TimeKind

Select the delta-time clock for this entry.

```csharp
public MotionTimeKind TimeKind;
```

[Runtime/Jobs/MotionUpdateJob.cs · L25](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L25)

## Ease

Ease applied to normalized time.

```csharp
public Ease Ease;
```

[Runtime/Jobs/MotionUpdateJob.cs · L26](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L26)

## Curve

Borrowed curve for CustomAnimationCurve. Keep it alive until the job completes.

```csharp
public UnsafeAnimationCurve Curve;
```

[Runtime/Jobs/MotionUpdateJob.cs · L28](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L28)

## Time

Current elapsed time in seconds for the entry.

```csharp
public double Time;
```

[Runtime/Jobs/MotionUpdateJob.cs · L29](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L29)

## State

Current lifecycle Status of the entry.

```csharp
public Status State;
```

[Runtime/Jobs/MotionUpdateJob.cs · L30](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L30)

## Preserved

Keep the completed entry from being retired automatically on a subsequent evaluation.

```csharp
public bool Preserved { set; }
```

[Runtime/Jobs/MotionUpdateJob.cs · L32](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L32)

## InSequence

Skip ordinary clock advancement and value writes for a sequence-owned entry.

```csharp
public bool InSequence { set; }
```

[Runtime/Jobs/MotionUpdateJob.cs · L37](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L37)

## Motion

Construct an entry from endpoints and duration with PlaybackSpeed and Loops initially set to one.

```csharp
public Motion(TValue from, TValue to, float duration)
```

Parameters

- `from` (`TValue`) Starting value.
- `to` (`TValue`) End value.
- `duration` (`float`) Duration in seconds.

[Runtime/Jobs/MotionUpdateJob.cs · L43](../../../source/Runtime/Jobs/MotionUpdateJob.cs.html#L43)
