This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

nccb
nccb presents ...

2012/7/31

Circle Collision

The circles are overlapping iff the distance between their two centres is less than the sum of their radiuses. More details/explanation in this blog post:

http://sinepost.wordpress.com/2012/07/31/pooled-knowledge/

3925 views / 8 in the last 7 days

3 votes | 0 in the last 7 days

Tags: with-source

open in greenfoot

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

SPowerSPower

2012/7/31

Fun!
SPowerSPower

2012/7/31

I don't know why, but I made a version of it using my Fast graphics scenario, and I think the circles look nicer. Wanna give it a try?
MorranMorran

2012/7/31

Math in Greenfoot is always cool.
zapnine7zapnine7

2012/8/1

Isn't this just what you covered in the "Shooting Rocks" post? Nevertheless, I'll be looking forward to learning how circles bounce off each other.
nccbnccb

2012/8/2

Shooting Rocks was about the intersection of a line and a circle, whereas this is about the intersection of two circles (which is actually easier).
yedefeiyedefei

2012/8/15

well,where is the latest post?I’m eager to look at how a real pool game works!

Want to leave a comment? You must first log in.

Who likes this?

zapnine7 Morran SPower