I created new
AppState instance for main game logic realization. Now I have some problems with accessing to
BulletAppState instance from this app state.
In the bottom of this docs page there is a template about accessing to all default fields of
SimpleApplication from different app states.
In this example there is default field
physics - instance of
BulletAppState, which I can access this way:
this.physics = this.stateManager.getState(BulletAppState.class);
But, when I do this inside my app state I get, that the variable
Can you explain me, is there a default
BulletAppState instance in every
AppState or I must create the one for every
AppState I create?