# Ray cast Observation for obstacles detection and Rewards

**URL:** <https://forums.unrealengine.com/t/ray-cast-observation-for-obstacles-detection-and-rewards/1836583>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Learning-Agents, question\
**Created:** [May 2, 2024, 2:27pm UTC](https://forums.unrealengine.com/t/ray-cast-observation-for-obstacles-detection-and-rewards/1836583 "2024-05-02T14:27:36Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Mahzad](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mahzad/32/745429_2.png) [@Mahzad](https://forums.unrealengine.com/u/Mahzad)\
**Post date:** [May 2, 2024, 4:01pm UTC](https://forums.unrealengine.com/t/ray-cast-observation-for-obstacles-detection-and-rewards/1836583/3 "2024-05-02T16:01:57Z")

</div>

Thanks, the point is not how to add raycast on the observation, but if is it still need to add on the agent a Hit event

---

_[View the full topic](https://forums.unrealengine.com/t/ray-cast-observation-for-obstacles-detection-and-rewards/1836583)._
