Camera rotation.

Started by JakubBaku, May 13, 2018, 12:06:32 PM

Previous topic - Next topic

JakubBaku

Hi, I'm starting with jPCT and I'm trying to make a moving camera but every single method in camera class just increments the already set angle and what I want to do is to SET angle, not INCREMENT it. Any thought on that one? Thanks in advance :P

JakubBaku

Okay I figured it out:

Matrix m = new Matrix();
m.rotateY(new angle);

camera.setBack(m);

EgonOlsen


camera.getBack().setIdentity();


might be a little more efficient.