|
3D collision detection June 26, 2011 12:12AM | Registered: 15 years ago Posts: 87 |
|
Re: 3D collision detection June 26, 2011 02:28PM | Registered: 15 years ago Posts: 363 |
|
Re: 3D collision detection June 27, 2011 12:16AM | Registered: 15 years ago Posts: 87 |
|
Re: 3D collision detection June 27, 2011 12:53AM | Registered: 15 years ago Posts: 363 |
|
Re: 3D collision detection June 27, 2011 07:55AM | Registered: 15 years ago Posts: 87 |
|
Re: 3D collision detection June 27, 2011 02:23PM | Registered: 15 years ago Posts: 363 |
|
Re: 3D collision detection June 27, 2011 04:04PM | Registered: 15 years ago Posts: 87 |
|
Re: 3D collision detection June 27, 2011 05:12PM | Registered: 15 years ago Posts: 363 |
|
Re: 3D collision detection June 28, 2011 09:03AM | Registered: 15 years ago Posts: 87 |
|
Re: 3D collision detection June 28, 2011 11:53AM | Registered: 15 years ago Posts: 87 |
|
Re: 3D collision detection June 28, 2011 01:51PM | Registered: 15 years ago Posts: 363 |
|
Re: 3D collision detection July 09, 2011 06:55PM | Registered: 15 years ago Posts: 99 |
|
Re: 3D collision detection July 09, 2011 08:07PM | Registered: 15 years ago Posts: 363 |
|
Re: 3D collision detection July 10, 2011 12:54PM | Registered: 15 years ago Posts: 99 |
|
Re: 3D collision detection July 10, 2011 05:08PM | Registered: 15 years ago Posts: 87 |
|
Re: 3D collision detection July 10, 2011 09:58PM | Registered: 15 years ago Posts: 363 |
bool check_diff(int n1, int n2, int fat) {
return ( ( (n2>n1) & (n2-fatn1) ) );
}
bool check_collision( int x1, int y1, int z1, int x2, int y2, int z2,
int fx1, int fy1, int fz1, int fx2, int fy2, int fz2 ) {
//do_draw_box( x2,y2,z2, 0, 0xCAA95F44, fx2, fy2, fz2 ); //show x2 bounding box
//do_draw_box( x1,y1,z1, 0, 0xCAA95F44, fx1, fy1, fz1 ); //show x1 bounding box
return ( (
check_diff(x1, x2, fx1) & check_diff(y1, y2, fy1) & check_diff(z1, z2, fz1) //check 1st
) | (
check_diff(x2, x1, fx2) & check_diff(y2, y1, fy2) & check_diff(z2, z1, fz2) //check 2nd
) );
} |
Re: 3D collision detection July 10, 2011 10:17PM | Registered: 15 years ago Posts: 99 |
|
Re: 3D collision detection July 10, 2011 10:47PM | Registered: 15 years ago Posts: 99 |
|
Re: 3D collision detection July 10, 2011 11:15PM | Registered: 15 years ago Posts: 363 |
Quote
Titmouse
Sorry Owen – that was a bad joke about you using plain C, I would never have a dig at anyone’s coding skills.
Apologies for poking fun at you; dire attempt at trying to get you to move over to C++
|
Re: 3D collision detection July 11, 2011 12:05AM | Registered: 15 years ago Posts: 99 |