Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Development Programming Misc > Re: Circle - Sq...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 12 Topic 948 of 1011
Post > Topic >>

Re: Circle - Square Collision Detection

by John Nagle <nagle@[EMAIL PROTECTED] > Oct 21, 2007 at 04:43 AM

Miss Elaine Eos wrote:
> In article <feLRi.4699$wF3.1680@[EMAIL PROTECTED]
>,
>  John Nagle <nagle@[EMAIL PROTECTED]
> wrote:
> 
>> The correct test for a circle is
>>
>> 	- center of circle inside all four edge lines (in the signed distance
>> 	sense).  Radius of the circle doesn't matter here.
>>     OR	- distance between center of circle and any vertex of the square
is
>> 	less than the radius of the circle.
>>
>>     The first test determines whether the center of the circle is
inside the
>> square.  The second test handles the cases where the circle is near a
corner
>> of the square.
>>
>>     See: http://www.animats.com/private/geometry/boxinsidecircle.gif
>>
>> 					John Nagle
>> 					Animats
> 
> Sorry to keep harping on this -- I don't MEAN to seem argumentative 
> (it's just a gift! :D)

    You're right.  The algorithms I've outlined get some cases wrong.
More later.

					John Nagle
 




 12 Posts in Topic:
Circle - Square Collision Detection
"guitarstrummr@[EMAI  2007-10-15 20:25:18 
Re: Circle - Square Collision Detection
Luc The Perverse <atay  2007-10-16 08:20:43 
Re: Circle - Square Collision Detection
John Nagle <nagle@[EMA  2007-10-17 02:48:47 
Re: Circle - Square Collision Detection
Luc The Perverse <atay  2007-10-17 00:48:52 
Re: Circle - Square Collision Detection
Miss Elaine Eos <Misc@  2007-10-17 14:35:19 
Re: Circle - Square Collision Detection
John Nagle <nagle@[EMA  2007-10-17 08:09:10 
Re: Circle - Square Collision Detection
Miss Elaine Eos <Misc@  2007-10-17 15:24:12 
Re: Circle - Square Collision Detection
John Nagle <nagle@[EMA  2007-10-18 08:47:04 
Re: Circle - Square Collision Detection
Miss Elaine Eos <Misc@  2007-10-19 02:45:55 
Re: Circle - Square Collision Detection
John Nagle <nagle@[EMA  2007-10-21 04:43:06 
Re: Circle - Square Collision Detection
Richard James <IWillGe  2007-10-19 16:59:54 
Re: Circle - Square Collision Detection
Anton <anton.txt@[EMAI  2007-10-28 22:57:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 19:35:14 CDT 2008.