Use Raycaster.setFromCamera() method
Convert two uses of raycaster to using setFromCamera(). One touches TransformControls but should not affect #6795. Also fix an error in webgl_interactive_draggablecubes.html when the cursor is dragged outside of the backing "plane" (which is a large planar mesh, not an infinite plane), returning no intersections. Now, when the limit of the bounded plane is reached, the cubes just stop following the cursor but no error is produced. Fix tested with webgl_interactive_draggablecubes.html and the editor.
Showing
想要评论请 注册 或 登录