Forum: Multimedia
Delphi
by Gandalfus,
10. Feb 2004
function RectinRect(rect1,rect2: Trect): boolean;
begin
result := true;
if (rect1.Left > rect2.BottomRight.x) then result:=false;
if (rect1.top > rect2.BottomRight.y) then result:=false;
if (rect2.Left > rect1.BottomRight.x) then result:=false;
if (rect2.top > rect1.BottomRight.y) then result:=false;
end;
Forum: Multimedia
Delphi
by Gandalfus,
9. Sep 2003
http://www.codeworx.org/gamedev_tuts_kollision_pixel.php
die Umsetzung in Delphi ist aber nicht gerade leicht:
http://www.delphi-groups.de/YaBBSe/index.php?board=4;action=display;threadid=14365;start=30
und
http://www.delphi-groups.de/YaBBSe/index.php?board=4;action=display;threadid=11561;start=15