Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case KeyEvent.VK_LEFT:
- x -= Math.toDegrees(Math.PI);
- break;
- case KeyEvent.VK_RIGHT:
- x += Math.toDegrees(Math.PI);
- break;
- public void run() {
- trans.rotX(Math.PI/2);
- trans.setTranslation(new Vector3f(0.1f, y, z));
- trans2.setTranslation(new Vector3f(0.1f,y2,z2));
- objTrans2.setTransform(trans);
- hujRotation.rotY(x);
- trans.mul(hujRotation, trans);
- trans2.mul(hujRotation, trans2);
- objTrans2.setTransform(trans);
- objTrans3.setTransform(trans2);
- label.setText("Współrzędne: " + x + " , "+ y + " , " + z);
- }
Advertisement
Add Comment
Please, Sign In to add comment