Exemple #1
0
 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);
 }
Exemple #2
0
 public void flyDown(float distance) {
   velocity.setY(distance);
 }
Exemple #3
0
 public void flyUp(float distance) {
   velocity.setY(-distance);
 }