Loading...

Intersection of a Circle and a Circle | Circle Circle collision | Java, JavaScript, C#, C++

3,835 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Jun 14, 2016

This is a circle circle intersection or collision detection test. It's the same exact algorithm that will work in JavaScript canvas (as in this tutorial example) as well as C++, C#, Java, Python and pretty much every other programming language that can do math. Just watch this tutorial to find out how to do it. Sphere vs sphere collision test is one of the most common collision detection activities going on in a 3D game engine, however in this tutorial we are only dealing with 2D shapes. To expand and make this a 3D algorithm, you would have to add an extra axis (Z), with exactly the same calculation tests as on the other two (X and Y).

Loading...

Advertisement
When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...