|
@@ -81,7 +81,7 @@ JME3 comes with a BulletAppState that implements Physical behaviour (using the j
|
|
== AppState
|
|
== AppState
|
|
|
|
|
|
The AppState interface lets you initialize sets of objects, and hook a set of continuously executing code into the main loop.
|
|
The AppState interface lets you initialize sets of objects, and hook a set of continuously executing code into the main loop.
|
|
-[cols="25,75", options="header"]
|
|
|
|
|
|
+[cols="50,50", options="header"]
|
|
|===
|
|
|===
|
|
|
|
|
|
a|AppState Method
|
|
a|AppState Method
|
|
@@ -89,7 +89,7 @@ a|Usage
|
|
|
|
|
|
a|initialize(asm,app)
|
|
a|initialize(asm,app)
|
|
a|When this AppState is added to the game, the RenderThread initializes the AppState and then calls this method. You can modify the scene graph from here (e.g. attach nodes). To get access to the main app, call:
|
|
a|When this AppState is added to the game, the RenderThread initializes the AppState and then calls this method. You can modify the scene graph from here (e.g. attach nodes). To get access to the main app, call:
|
|
- |
|
|
|
|
|
|
+a|
|
|
[source,java]
|
|
[source,java]
|
|
----
|
|
----
|
|
super.initialize(stateManager, app);
|
|
super.initialize(stateManager, app);
|