[Super-tux-devel] Gameloop Rewrite Status
Brought to you by:
wkendrick
From: Tobias <tob...@gm...> - 2004-01-02 17:04:33
|
Hi all, I'm making progress and you'll probably see the next CVS commit tonight. I'm currently thinking about the new collision detection and decided to move them all into one place. (i.e. collision.c/h ?) We need a function, wich can do collision detection, but there are many possibilities on how to do this. One possibility is to check if the "rectangle" of an object hits the "rectangle" of another object, like we currently do, but I don't like this method, because it isn't very precise. On the other hand it's relativly fast. The other way to do collision detection would be a pixel-per-pixel solution, where we test, if two non-alpha pixels hit each other. Maybe someone has already written such a function or a class in C++, which could be ported. My experience in this area is low (tux bless google), but I guess some of you have experience and can give me some hints and tips. :) Greetz... Tobias Gläßer -- |