# PhysicsTransform

> Represents a 2D transformation combining a translation and a PhysicsRotate.

## Definition

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

```csharp
public struct PhysicsTransform
```

## Fields

| Value                                                                                      | Description                             |
| ------------------------------------------------------------------------------------------ | --------------------------------------- |
| [position](/engine/6000.5/script-reference/unity/u2d/physics/physicstransform/position.md) | The translation for the transformation. |
| [rotation](/engine/6000.5/script-reference/unity/u2d/physics/physicstransform/rotation.md) | The rotation for the transformation.    |

## Constructors

| Constructor                                                                                                                                                                                   | Description                                                             |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [PhysicsTransform()](/engine/6000.5/script-reference/unity/u2d/physics/physicstransform/ctor.md#physicstransform\(\))                                                                         | Create an identity transform.                                           |
| [PhysicsTransform(UnityEngine.Vector2)](/engine/6000.5/script-reference/unity/u2d/physics/physicstransform/ctor.md#physicstransform\(vector2\))                                               | Create a transformation with the specified translation and no rotation. |
| [PhysicsTransform(UnityEngine.Vector2,Unity.U2D.Physics.PhysicsRotate)](/engine/6000.5/script-reference/unity/u2d/physics/physicstransform/ctor.md#physicstransform\(vector2-physicsrotate\)) | Create a transformation with the specified translation and rotation.    |

## Properties

| Property                                                                                 | Description                                                                                                                                               |
| ---------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [isValid](/engine/6000.5/script-reference/unity/u2d/physics/physicstransform/isvalid.md) | Check if the PhysicsTransform is valid (position is not NaN and [\_isValid](/engine/6000.5/script-reference/unity/u2d/physics/physicsrotate/isvalid.md)). |

## Static Properties

| Property                                                                                   | Description                                                                        |
| ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------- |
| [identity](/engine/6000.5/script-reference/unity/u2d/physics/physicstransform/identity.md) | The identity transformation i.e. a transformation with no translation or rotation. |

## Methods

| Method                                                                                                                     | Description                                                                     |
| -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| [GetPositionAndRotation](/engine/6000.5/script-reference/unity/u2d/physics/physicstransform/getpositionandrotation.md)     | Get both the position and rotation.                                             |
| [InverseMultiplyTransform](/engine/6000.5/script-reference/unity/u2d/physics/physicstransform/inversemultiplytransform.md) | Inverse Multiply the specified transform with the current transform.            |
| [InverseTransformPoint](/engine/6000.5/script-reference/unity/u2d/physics/physicstransform/inversetransformpoint.md)       | Inverse Transform a point using the current transform translation and rotation. |
| [MultiplyTransform](/engine/6000.5/script-reference/unity/u2d/physics/physicstransform/multiplytransform.md)               | Multiply the specified transform with the current transform.                    |
| [TransformPoint](/engine/6000.5/script-reference/unity/u2d/physics/physicstransform/transformpoint.md)                     | Transform a point using the current transform translation and rotation.         |

## Operators

| Operator                                                                                              | Description                                                                                                                                                                 |
| ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [PhysicsTransform](/engine/6000.5/script-reference/unity/u2d/physics/physicstransform/op-implicit.md) | Implicit conversion of a [PhysicsRotate](/engine/6000.5/script-reference/unity/u2d/physics/physicsrotate.md) that represents a rotation transformation with no translation. |
