Przeglądaj źródła

Update custom_controls.adoc

mitm001 8 lat temu
rodzic
commit
684aa29045

+ 4 - 1
src/docs/asciidoc/jme3/advanced/custom_controls.adoc

@@ -15,7 +15,7 @@ To control global game behaviour see <<jme3/advanced/application_states#,Applica
 
 To control the behaviour of spatials:
 
-.  Create one control for each _type of behavior_. When you add several controls to one spatial, they will be executed in the order they were added. +
+.  Create one control for each _type of behavior_. When you add several controls to one spatial, they will be executed in the order they were added. +
 For example, one NPC can be controlled by a PhysicsControl instance and an AIControl instance.
 .  Define the custom control and implement its behaviour in the Control's update method:
 **  You can pass arguments into your custom control.
@@ -30,3 +30,6 @@ spatial.addControl(myControl);
 
 
 To implement game logic for a type of spatial, you will either extend AbstractControl (most common case), or implement the Control interface, as explained in this article.
+
+
+== Usage