Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!markedMa){
- camMa.setFromEulerAngles((float) Math.toDegrees(-camera.getYaw()), (float) Math.toDegrees(camera.getPitch()), 0f);
- markedMa = true;
- }
- float dx = (input.getMouseDX() * (prefs.mouseSensitivity * 5f));
- float dy = (input.getMouseDY() * (prefs.mouseSensitivity * 5f));
- utilMatrix.setFromEulerAngles(0f, -dy, -dx);
- camMa.mul(utilMatrix);
- plaMa.setFromEulerAngles((float) Math.toDegrees(trueYaw), (float) Math.toDegrees(pitch), (float) Math.toDegrees(roll));
- plaMa.mul(camMa);
Advertisement
Add Comment
Please, Sign In to add comment