# ToPhysicsTransform(Transform, TransformPlane)

> Transform a 3D Transform position and rotation to a 2D PhysicsTransform. Scale is not part of a PhysicsTransform therefore it is ignored. If PhysicsWorld.TransformPlane.Custom is used, PhysicsWorld.TransformPlane.XY will be used instead which may not provide the correct results.

## Definition

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

```csharp
public static PhysicsTransform ToPhysicsTransform(Transform transform, PhysicsWorld.TransformPlane transformPlane = TransformPlane.XY)
```

### Parameters

**** (\[Transform]\(/engine/6000.6/script-reference/unityengine/transform)): The 3D transform to use.**** (\[TransformPlane]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsworld/transformplane)): The transform plane to use.

### Returns

| Type                                                                                      | Description       |
| ----------------------------------------------------------------------------------------- | ----------------- |
| [PhysicsTransform](/engine/6000.6/script-reference/unity/u2d/physics/physicstransform.md) | The 2D transform. |
