So I’m following a 3d camera tutorial for lwjgl (found here). But I came across a missing class. I have all my jars correctly installed so i don’t know why this is happening.
[EDIT] I’m asking why that class is missing and how can I find it. The missing class is MatrixUtil.
import org.lwjgl.util.vector.Matrix4f;
import org.lwjgl.util.vector.Vector3f;
import static org.lwjgl.opengl.GL11.*;
public class Camera {
private float fov;
private float aspect;
private float zNear;
private float zFar;
private Matrix4f projection;
private Matrix4f view;
private Vector3f position;
private Vector3f rotation;
private Vector3f xAxis, yAxis, zAxis;
public Camera(float fov, float aspect, float zNear, float zFar)
{
this.fov = fov;
this.aspect = aspect;
this.zNear = zNear;
this.zFar = zFar;
projection = MatrixUtil.createPerspectiveProjection(fov, aspect, zNear, zFar);
view = MatrixUtil.createIdentityMatrix();
position = new Vector3f(0, 0, 0);
rotation = new Vector3f(0, 0, 0);
xAxis = new Vector3f(1, 0, 0);
yAxis = new Vector3f(0, 1, 0);
zAxis = new Vector3f(0, 0, 1);
glEnable(GL_DEPTH_TEST);
}
}
Thanks