Docs » Autodocs » graphics.library » DoCollision
DoCollision -- Test every gel in gel list for collisions.
DoCollision(rp) A1 void DoCollision(struct RastPort *);
Tests each gel in gel list for boundary and gel-to-gel collisions. On detecting one of these collisions, the appropriate collision- handling routine is called. See the documentation for a thorough description of which collision routine is called. This routine expects to find the gel list correctly sorted in Y,X order. The system routine SortGList performs this function for the user.
rp = pointer to a RastPort
InitGels(), SortGList(), <graphics/gels.h>, <graphics/gels.h>
|