Physics and JMEDesktop

Theoretically, would it be possible to create a JMEDesktop and then make it a physics object? Would this be possible with the current PhysicsGameState and JMEDesktopState or would more code need to be written?

aeneas said:

Theoretically, would it be possible to create a JMEDesktop and then make it a physics object?

sure, JMEDesktop is just a texture (does not interfere with physics).

I don't know about the state stuff, though.

You'd probably be able to duplicate from most of the code in JMEDesktopState, but rather than adding the desktop to the rootNode, you'd wrap it in a physics object first.  That should be about all that's required I believe.  I've thought about creating menus like that with physics and having them drop into the screen and bounce a bit but never really got around to trying it.