mitm001 пре 5 година
родитељ
комит
0bb87ca4a1

+ 3 - 5
docs/modules/tutorials/pages/beginner/hello_input_system.adoc

@@ -352,10 +352,6 @@ inputManager.addJoystickConnectionListener(new JoystickConnectionListener() {
 == Exercises
 
 .  Add mappings for moving the player (box) up and down with the H and L keys!
-.  Switch off the flyCam and override the WASD keys.
-+
-TIP: Use xref:ROOT:jme3/faq.adoc#how-do-i-switch-between-third-person-and-first-person-view[flyCam.setEnabled(false);]
-
 .  Modify the mappings so that you can also trigger the up an down motion with the mouse scroll wheel!
 +
 TIP: Use `new MouseAxisTrigger(MouseInput.AXIS_WHEEL, true)`
@@ -369,7 +365,9 @@ int usersPauseKey = KeyInput.KEY_P;
 inputManager.addMapping("Pause",  new KeyTrigger(usersPauseKey));
 
 ----
-
+.  Switch off the flyCam and override the WASD keys.
++
+TIP: Use xref:ROOT:jme3/faq.adoc#how-do-i-switch-between-third-person-and-first-person-view[flyCam.setEnabled(false);]
 
 
 [IMPORTANT]

+ 7 - 0
docs/modules/tutorials/pages/beginner/solutions.adoc

@@ -261,6 +261,13 @@ Now you should be able to scroll the cube up or down with the mouse wheel.
 
 When the controls are user-chosen.
 
+=== Excercise 4
+
+[source, java]
+----
+flyCam.setEnabled(true);
+----
+
 
 == Hello Picking