Docs


Mouse

On the desktop, in normal Three.js APIs, mouse drag and scroll controls the camera.
If you want to use the mouse to do something else, you can override the mouse camera control, and capture Mouse events yourself in your JavaScript.

Below is a sample World showing Mouse drag for moving an agent around the World, and mouse click on an object to change it. Run on desktop to see.


Zombie Death Baby
803 runs ♦ 1 like
By Starter user  
Created: 11 Jun 2018
Modified: 17 Sep 2023
How to make a fun touch game for mobile. Touch drag and tap objects. Mouse drag and click object...