Posted by
April 25th, 2013 6:43 pm

I’m in!

Guys, I haven’t touched game coding in months.  So I’m kind of scared.  How do you do circle collision again?

But, I have some moral support from some friends who are entering along with me, so lets KICK SOME ASS

Toolset:

• OSX
• Love2D
• SublimeText w/ vim
• Something that draws stuff, Seashore I guess, or GIMP if I can figure out how to use it
• Tiled
• SFXR
• Ableton Live
• Coffee

This community is amazing.  Best of luck to all, and have fun!

### 3 Responses to “”

1. h4tch says:

If the distance of a point to the center of the circle is less than the circle’s radius, then the point is colliding with the circle.

2. minism says:

Sure! I was worrying more about calculating the vector of reflection.

3. netguy204 says:

P,V is the incident object (position and velocity), C is the point at the center of your circle. r is the radius of your circle.

if (magnitude(P – C) <= r) {
// collision, find the collision normal
N = normalize(P – C)

// project the velocity onto the collision normal
Proj = dot(V, N)

// reflect the velocity
V = V – 2 * Proj * N
}

[cache: storing page]