# PhysicsQuery.CastResult

> Cast result when performing cast-ray or cast-shape queries against geometry.

## Definition

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

```csharp
public readonly struct PhysicsQuery.CastResult
```

## Properties

| Property                                                                                              | Description                                                                                                                                                                                                                                                                                               |
| ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [fraction](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castresult/fraction.md)     | The fraction of the input translation at collision in the range (0 to 1).                                                                                                                                                                                                                                 |
| [isValid](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castresult/isvalid.md)       | Check if the result is valid.                                                                                                                                                                                                                                                                             |
| [iterations](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castresult/iterations.md) | The number of iterations used in the calculation.                                                                                                                                                                                                                                                         |
| [normal](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castresult/normal.md)         | The surface normal at the point of contact. In all non-overlapped cases, this will be a unit-normal. If there was an initial overlap, the normal will be zero (degenerate) along with the [\_fraction](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castresult/fraction.md) being zero. |
| [point](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castresult/point.md)           | The point of contact.                                                                                                                                                                                                                                                                                     |

## Operators

| Operator                                                                                         | Description                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castresult/op-implicit.md) | Implicitly convert the cast output to a bool using the value in the [\_isValid](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castresult/isvalid.md) flag. |

## Structs

| Struct                                                                                                                                       | Description                       |
| -------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
| [PhysicsQuery.CastResult.SortAscendingOrder](/engine/6000.5/script-reference/unity/u2d/physics/physicsquery/castresultsortascendingorder.md) | Ascending distance sort comparer. |
