left.getLocalTranslation().set( - halfDesktopWidth, 0, 0 ); left.setModelBound( new OrientedBoundingBox() );
left.getLocalTranslation().set( -halfDesktopWidth, 0, 0 ); left.setModelBound( new BoundingBox() );
    private void createBoxBorder() {        //create a border from boxes around the desktop        float borderSize = 10;        float halfBorderSize = borderSize / 2;        int halfDesktopWidth = jmeDesktop.getJDesktop().getWidth() / 2;        int halfDesktopHeight = jmeDesktop.getJDesktop().getHeight() / 2;        Box top = new Box( "top border", new Vector3f(),                halfDesktopWidth + halfBorderSize,                halfBorderSize, halfBorderSize );        top.getLocalTranslation().set( 0, - halfDesktopHeight, 0 );        top.setModelBound( new OrientedBoundingBox() );        top.updateModelBound();        desktopNode.attachChild( top );        Box bottom = new Box( "bottom border", new Vector3f(),                halfDesktopWidth + halfBorderSize,                halfBorderSize, halfBorderSize );        bottom.getLocalTranslation().set( 0, halfDesktopHeight, 0 );        bottom.setModelBound( new OrientedBoundingBox() );        bottom.updateModelBound();        desktopNode.attachChild( bottom );        Box left = new Box( "left border", new Vector3f(),                halfBorderSize,                halfDesktopHeight + halfBorderSize,                halfBorderSize );        left.getLocalTranslation().set( - halfDesktopWidth, 0, 0 );        left.setModelBound( new OrientedBoundingBox() );        left.updateModelBound();        desktopNode.attachChild( left );        Box right = new Box( "right border", new Vector3f(),                halfBorderSize,                halfDesktopHeight + halfBorderSize,                halfBorderSize );        right.getLocalTranslation().set( halfDesktopWidth, 0, 0 );        right.setModelBound( new OrientedBoundingBox() );        right.updateModelBound();        desktopNode.attachChild( right );    }