Explorar o código

Fixed minor code formating issue.

mitm %!s(int64=7) %!d(string=hai) anos
pai
achega
52bf414a74
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/docs/asciidoc/jme3/beginner/hello_picking.adoc

+ 4 - 2
src/docs/asciidoc/jme3/beginner/hello_picking.adoc

@@ -93,7 +93,8 @@ public class HelloPicking extends SimpleApplication {
         // 2. Aim the ray from cam loc to cam direction.
         Ray ray = new Ray(cam.getLocation(), cam.getDirection());
         // 3. Collect intersections between Ray and Shootables in results list.
-        // DO NOT check collision with the root node, or else ALL collisions will hit the skybox! Always make a separate node for objects you want to collide with.
+        // DO NOT check collision with the root node, or else ALL collisions will hit the
+        // skybox! Always make a separate node for objects you want to collide with.
         shootables.collideWith(ray, results);
         // 4. Print the results
         System.out.println("----- Collisions? " + results.size() + "-----");
@@ -159,7 +160,8 @@ public class HelloPicking extends SimpleApplication {
     ch.setSize(guiFont.getCharSet().getRenderedSize() * 2);
     ch.setText("+"); // crosshairs
     ch.setLocalTranslation( // center
-      settings.getWidth() / 2 - ch.getLineWidth()/2, settings.getHeight() / 2 + ch.getLineHeight()/2, 0);
+      settings.getWidth() / 2 - ch.getLineWidth()/2,
+      settings.getHeight() / 2 + ch.getLineHeight()/2, 0);
     guiNode.attachChild(ch);
   }