Hey!
Sorry this might seem like a dumb question but i can't find a good example that fits my needs.
I'm building a test-program to figure out the best way to load my models into jme. now i'd like to be able to rotate the model with the mouse, i looked at the dynamicSmoker example but that's derived from SimpleGame, mine is BaseGame. anyways from that i figured i'd need a NodeHandler but i can't really figure out how to integrate that in my application. can anyone point me in the right direction?
THX!
If its just a test program I would HIGHLY recommend extending SimpleGame rather than BaseGame; SimpleGame has a lot of 'debugging' tools built right into it, where BaseGame is very bare bones…
For something as simple as just rotating a model just add some KeyBindings:
in your init:
KeyBindingManager.getKeyBindingManager().set( "SOME_COMMAND", KeyInput.KEY_SPACE );
in your update:
if( KeyBindingManager.getKeyBindingManager().isValidCommand( "SOME_COMMAND", false ) ){
// Do something
}
hmm, okay, and what if i wanted to use the mouse instead of the keyboard?