# PhysicsWorld.TransformTweenMode

> Defines if and how Transform tweens are calculated and/or written.

## Definition

* **Type:** Enum
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public enum PhysicsWorld.TransformTweenMode
```

## Fields

| Value                                                                                                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Custom](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/transformtweenmode/custom.md)         | Transform tweens are not calculated or written. Instead, the callback target set with [\_transformWriteCallbackTarget](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/transformwritecallbacktarget.md) which must implement [PhysicsCallbacks.ITransformWriteCallback](/engine/6000.7/script-reference/unity/u2d/physics/physicscallbacks/itransformwritecallback.md) will be have [PhysicsCallbacks.ITransformWriteCallback.OnTransformTweenWrite](/engine/6000.7/script-reference/unity/u2d/physics/physicscallbacks/itransformwritecallback/ontransformtweenwrite.md) called allowing custom transform tween writing.                                                                                                                                                                                                                                                                                                                                                |
| [Off](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/transformtweenmode/off.md)               | Transform tweens are not calculated or written.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [Parallel](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/transformtweenmode/parallel.md)     | Transform tweens are calculated and written in parallel using a [TransformAccess](/engine/6000.7/script-reference/unityengine/jobs/transformaccess.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [Sequential](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/transformtweenmode/sequential.md) | Transform tweens are calculated and written linearly on a single thread, likely the main-thread. This may be faster than using [PhysicsWorld.TransformTweenMode.Parallel](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/transformtweenmode/parallel.md) if the majority of the [Transform](/engine/6000.7/script-reference/unityengine/transform.md) are not split across hierarchies so that they can be written in parallel. To further clarify, if most of the [Transform](/engine/6000.7/script-reference/unityengine/transform.md) are not interleaved across different hierarchies, this non-parallel (sequential) mode may be faster than [PhysicsWorld.TransformTweenMode.Parallel](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/transformtweenmode/parallel.md), because it avoids the overhead of splitting and synchronizing work across multiple threads when there is not enough independent hierarchy work to parallelize efficiently. |
