how do i make a glass that breaks into pieces when it hitted by an object

logic bricks below:

touch: ---------- AND ---------- message:
bullet(or w/e)           \           subject: break
                           ------------ edit object:
                                     end object

on emtys:

massage(sensor): ----------AND----------edit object:
subject(the subject to look for): break   add object: broken#(the different broken parts)
                                                          linv: X0.0 Y0.0 Z-0.4(these can be what you want)

And there you have it that should give you an effect like in some of the old James Bond games for the N64.