# raycastsStartInColliders

> Do ray/line casts that start inside a Collider(s) detect those Collider(s)?

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.3/script-reference/unityengine.md)
* **Assembly:** UnityEngine.Physics2DModule

> **Warning:**
>
> **Removed.** Physics2D.raycastsStartInColliders is obsolete. Use Physics2D.queriesStartInColliders instead.
>
> **Upgrade to** [Physics2D.queriesStartInColliders](/engine/6000.3/script-reference/unityengine/physics2d/queriesstartincolliders.md)

```csharp
public static bool raycastsStartInColliders { get; set; }
```

### Remarks

When performing a ray/line cast, the start point can begin inside a Collider.  When this occurs, this property controls whether these Colliders are returned or not.  When set to true, such Colliders are returned.

Additional Resources: [Physics2D.Raycast](/engine/6000.3/script-reference/unityengine/physics2d/raycast.md), [Physics2D.Linecast](/engine/6000.3/script-reference/unityengine/physics2d/linecast.md).
