Hey there! I'm working on a project involving a plane and raycasting. What I'm trying to achieve is to obtain the coordinates of the intersection point on the plane. Any help would be appreciated, thanks!
(Just to clarify, I changed the color as a test to confirm that the raycast was functioning properly.)
This is the code snippet I am currently using:
raycaster.setFromCamera( mouse, camera );
//find objects intersecting with the picking ray
var intersects = raycaster.intersectObjects( scene.children );
for ( var i = 0; i < intersects.length; i++ ) {
intersects[ i ].object.material.color.set( 0xff0000 );
}
Thanks in advance for any assistance provided! Best wishes, Keegan.