public void lookThrough() { position.setX(position.getX() + velocity.getX()); position.setY(position.getY() + velocity.getY()); position.setZ(position.getZ() + velocity.getZ()); GL11.glRotatef(pitch, 1.0f, 0.0f, 0.0f); GL11.glRotatef(yaw, 0.0f, 1.0f, 0.0f); GL11.glTranslatef(position.x, position.y, position.z); }
public void flyDown(float distance) { velocity.setY(distance); }
public void flyUp(float distance) { velocity.setY(-distance); }