mrdoob/three.js — Issue #781: generalize TrackballControls to control objects
Author: huttarl
Created: 2011-11-21 06:47:45+00:00
State: open

I've been using your TrackballControls to rotate the scene, by rotating the camera. That's convenient, and it works great for many situations, where you want the camera to move relative to everything in the scene.

But sometimes, one would like some things to remain stationary relative to the camera.
E.g. if you have two molecules, and you want to rotate them independently, so that they might connect with each other.
In my case, I want to rotate a game grid but keep the lights stationary relative to the camera.

How would you advise doing that?
How hard would it be to generalize TrackballControls to rotate a particular object (and therefore all its descendants), instead of
affecting the camera?

I asked Eberhard, the TrackballControls author, about that. He agreed it would be something he would love to see implemented, but he doesn't have time. He suggested I ask here.

Regards,
Lars