#NEWLINE# def explode( self ) : #NEWLINE# #INDENT# 'Segment the entity shape into itty bits' #NEWLINE# shape = self . shape . verts . transform ( angle = self . position . angle ) #NEWLINE# for segment in shape . segments ( ) : #NEWLINE# #INDENT# debris = Debris ( segment . world ) #NEWLINE# debris . shape . verts = segment #NEWLINE# debris . position . position = self . position . position #NEWLINE# debris . movement . velocity = self . movement . velocity #NEWLINE# debris . movement . velocity += ( segment [ 0 ] . normalized ( ) * random . gauss ( 50 , 20 ) ) #NEWLINE# debris . movement . rotation = random . gauss ( 0 , 45 ) #NEWLINE# debris . renderable . color = self . renderable . color