public void update()
	{
		
		float movAmt = (float)(MOVE_SPEED * Time.getDelta());
		
		movementVector.setY(0);
		
		Vector3f oldPos = Transform.getCamera().getPos();
		Vector3f newPos = oldPos.add(movementVector.normalized().mul(movAmt));
		
		Vector3f collisionVector = Game.getLevel().checkCollisions(oldPos, newPos, width, width);
		
		movementVector = movementVector.normalized().mul(collisionVector);
			
		if(movementVector.length() > 0)
			playerCamera.move(movementVector, movAmt);
		
		//Gun movement
		gunTransform.setScale(1,1,1);
		gunTransform.setPosition(playerCamera.getPos().add(playerCamera.getForward().normalized().mul(0.105f)));
		gunTransform.getPosition().setY(gunTransform.getPosition().getY() + GUN_OFFSET);
		
		Vector3f playerDistance = gunTransform.getPosition().sub(Transform.getCamera().getPos());
		
		Vector3f orientation = playerDistance.normalized();
		
		float angle = (float)Math.toDegrees(Math.atan(orientation.getZ()/orientation.getX()));
		
		if(orientation.getX() > 0)
			angle = 180 + angle;
		
		gunTransform.setRotation(0,angle + 90,0);
	}