Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

PeasyCam - Yaw and Roll only

$
0
0

Hi there,

As the title suggests I'm trying to only allow yaw and roll rotations, is that possible?

I'm aware of these functions but it only seems to be one or the other!?

// By default, the camera is in "free rotation" mode, but you can
// constrain it to any axis, around the look-at point:
camera.setYawRotationMode();   // like spinning a globe
camera.setPitchRotationMode(); // like a somersault
camera.setRollRotationMode();  // like a radio knob
camera.setSuppressRollRotationMode();  // Permit pitch/yaw only.

// Then you can set it back to its default mode:
camera.setFreeRotationMode();

Thanks, Charles


Viewing all articles
Browse latest Browse all 2896

Trending Articles