Three.js Raycasting For Mouse Picking

Introduction

In this article, I will show you how to use Raycasting with Three.js to do mouse picking. You will be able to determine what object in the scene the mouse is hovering over at any given time. This is a step-by-step style tutorial with incomplete code snippets, but the full source code is available at the end. The full source code is from the video above, which is based on my previous Three.js articles working towards a 3D checkers game.

Continue reading “Three.js Raycasting For Mouse Picking”