We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › overlapping squares
Page Index Toggle Pages: 1
overlapping squares (Read 495 times)
overlapping squares
Feb 22nd, 2007, 10:06pm
 
Hi,
ok so here's the thing:

I have 3 squares 2 of them can be moved the third one is fixed

when I move one square I want to know if it's in the fixed square or not.

How would you go code this ?

E
Re: overlapping squares
Reply #1 - Feb 22nd, 2007, 10:23pm
 
You could use fjen's method:

http://snippet.seltar.org/index.php?pid=3&sid=14

or you could tell us a little more about the nature of these squares (size, x / y movement, collision?).
Page Index Toggle Pages: 1