# How to raycast a curved surface (a cylinder or circle for example)

**URL:** <https://forum.kirupa.com/t/how-to-raycast-a-curved-surface-a-cylinder-or-circle-for-example/251065>\
**Category:** programming\
**Created:** [February 5, 2008, 3:37am UTC](https://forum.kirupa.com/t/how-to-raycast-a-curved-surface-a-cylinder-or-circle-for-example/251065 "2008-02-05T03:37:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glidias](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@Glidias](https://forum.kirupa.com/u/Glidias)\
**Post date:** [February 5, 2008, 3:37am UTC](https://forum.kirupa.com/t/how-to-raycast-a-curved-surface-a-cylinder-or-circle-for-example/251065/1 "2008-02-05T03:37:43Z")

</div>

As the question says, I need to raycast out an angle which would strike the arc of a circle to determine the distance of the ray.
