Need Help With Ray Casting

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.

Are you looking for something like this?