struct in UnityEngine.LowLevelPhysics2D
/
Implemented in:UnityEngine.Physics2DModule
Represents a 2D transformation combining a translation and a PhysicsRotate.
| Property | Description |
|---|---|
| identity | The identity transformation i.e. a transformation with no translation or rotation. |
| Property | Description |
|---|---|
| isValid | Check if the PhysicsTransform is valid (position is not NaN and PhysicsRotate.isValid). |
| position | The translation for the transformation. |
| rotation | The rotation for the transformation. |
| Constructor | Description |
|---|---|
| PhysicsTransform | Create an identity transform. |
| Method | Description |
|---|---|
| GetPositionAndRotation | Get both the position and rotation. |
| InverseMultiplyTransform | Inverse Multiply the specified transform with the current transform. |
| InverseTransformPoint | Inverse Transform a point using the current transform translation and rotation. |
| MultiplyTransform | Multiply the specified transform with the current transform. |
| TransformPoint | Transform a point using the current transform translation and rotation. |
| Operator | Description |
|---|---|
| PhysicsTransform | Implicit conversion of a UnityEngine.Vector2 that represents a translation transformation with no rotation. |
| PhysicsTransform | Implicit conversion of a PhysicsRotate that represents a rotation transformation with no translation. |