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