jPCT - a 3d engine for Java > Support
Camera rotation.
(1/1)
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:
--- Code: ---Matrix m = new Matrix();
m.rotateY(new angle);
camera.setBack(m);
--- End code ---
EgonOlsen:
--- Code: ---camera.getBack().setIdentity();
--- End code ---
might be a little more efficient.
Navigation
[0] Message Index
Go to full version