public void attachToBody ( Body body , float offsetX , float offSetY , float degrees ) { this . body = body ; bodyOffsetX = offsetX ; bodyOffsetY = offSetY ; bodyAngleOffset = degrees ; if ( staticLight ) dirty = true ; }
Attaches light to specified body with relative offset and direction