prisonerjohn / processing-web

0 stars 0 forks source link

[CLOSED] hittest(_,_) & calculateBounce(_,_) #50

Open prisonerjohn opened 10 years ago

prisonerjohn commented 10 years ago

Issue by lolwel21 Tuesday Feb 26, 2013 at 02:30 GMT Originally opened as https://github.com/processing/processing-web/issues/50


hittest(shape,width,height,x,y,shape2,width,height,x,y) would detect whether two objects are colliding(ex: hittest(ellipse,16,16,230,300,rectangle,25,16,200,100);) calculateBounce would calculate the direction of the bounce with the same parameters as hittest.

prisonerjohn commented 10 years ago

Comment by REAS Tuesday Feb 26, 2013 at 03:28 GMT


Please suggest this on the "processing/processing" repo. The "processing/processing-web" repo is for the Processing website, reference, and documentation.

prisonerjohn commented 10 years ago

Comment by shiffman Tuesday Feb 26, 2013 at 15:17 GMT


Also @lolwel21 I would like to point out that this is really a case for using a library or working off of an example. The Processing API does not include a built-in physics engine. I would suggest looking at http://processing.org/learning/topics/bouncybubbles.html to start.