bool isCol(int aX, int aY,int aWidth,int aHeight, int bX, int bY, int bWidth, int bHeight){if ((aX+aWidth)< bX || aX > (bX+bWidth)) return false;if ((aY+aHeight)< bY || aY > (bY+bHeight)) return false;return true;}
rectangular collision
August 11, 2001 05:47 AM
sorry the code didn''t post correct(it didn''t post parts of it)
Ok, that makes sense. BTW, how do you get tag operators to work in this forum anyhow?
Tell him about the twinky...
All these rect collision functions look different even though they do the same thing so i post yet another one that does the same thing.
|
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement