# Need Help With Ray Casting

**URL:** <https://discourse.processing.org/t/need-help-with-ray-casting/10833>\
**Category:** Libraries\
**Created:** [May 2, 2019, 8:04am UTC](https://discourse.processing.org/t/need-help-with-ray-casting/10833 "2019-05-02T08:04:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheBigCx](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@TheBigCx](https://discourse.processing.org/u/TheBigCx)\
**Post date:** [May 2, 2019, 8:04am UTC](https://discourse.processing.org/t/need-help-with-ray-casting/10833/1 "2019-05-02T08:04:20Z")

</div>

I’m currently developing a Minecraft clone, and I’m stuck on block editing. I need to be able to break and place blocks, but can’t figure it out with Ray Casting. I am using QueasyCam to take care of movement.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [May 3, 2019, 8:42pm UTC](https://discourse.processing.org/t/need-help-with-ray-casting/10833/2 "2019-05-03T20:42:22Z")

</div>

> [@TheBigCx](#):
>
> I need to be able to break and place blocks, but can’t figure it out with Ray Casting.

Are you looking for something like this?

- [Picking in 3D through ray tracing method - Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/21644/picking-in-3d-through-ray-tracing-method)
