- Home /
Question by
maw0041 · Jul 09, 2019 at 07:10 PM ·
raycastcolliderobjectmouseclickconnecting
Mouse clicking on an object (Raycast.hit) for another object to connect to it?
Hey guys,
I am trying to figure out how to use a mouse on click event to "select" a face of a cube, then have another cube attach to it. I want to use raycast for this because I think it would be better for what I am doing. My cube has separate colliders on each of its faces.
Eventually, I want to be able to attach objects that can only attach in specific ways, through specific faces.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612204620im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How To Detect MouseClick Using Raycast Java Script 0 Answers
Push object in direction of camera 0 Answers
Use ray cast against objects but avoid colliding against other objects 2 Answers
Raycast/Non-Physics Collider Discrepancy 0 Answers
Is Object At Location? 3 Answers