Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Ticket #1: staticShapeSelect.diff

File staticShapeSelect.diff, 411 bytes (added by Ralith, 16 years ago)

Patch to support picking of static shapes via getShapeAtPoint

  • blaze/dynamics/Space.d

    old new  
    325325                return shape; 
    326326            } 
    327327        } 
     328        foreach(shape; staticBody.memberShapes) 
     329            if(shape.containsPoint(point)) 
     330                return shape; 
    328331        return null; 
    329332    }            
    330333