copied code from ogre-bullet interface slides