# Raycast detects a hit when the collider is far away

**URL:** <https://forums.unrealengine.com/t/raycast-detects-a-hit-when-the-collider-is-far-away/1255641>\
**Category:** Blueprint\
**Tags:** Raycast, collision-detection, epic-games-store, bug-report, question\
**Created:** [August 9, 2023, 12:58pm UTC](https://forums.unrealengine.com/t/raycast-detects-a-hit-when-the-collider-is-far-away/1255641 "2023-08-09T12:58:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monarch1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Monarch1](https://forums.unrealengine.com/u/Monarch1)\
**Post date:** [August 9, 2023, 12:58pm UTC](https://forums.unrealengine.com/t/raycast-detects-a-hit-when-the-collider-is-far-away/1255641/1 "2023-08-09T12:58:50Z")

</div>

I have a ai car road system using the chaos vehicle, using a raycast i check if a car has another car infront of it and if it should stop when the raycast hits, but when i move the camera away from the road system the car raycast hits another car even though the raycast is far shorter than the distance between the cars,

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [April 15, 2024, 8:26am UTC](https://forums.unrealengine.com/t/raycast-detects-a-hit-when-the-collider-is-far-away/1255641/2 "2024-04-15T08:26:34Z")

</div>

Pls show the blueprint where you do the tracing.
