Sign in to follow this  
IsItSharp

Calculate reflection vector if two circles intersect

Recommended Posts

Hi,

i would like to calculate the reflection vector if two circles intersect each other. A circle is an object with radius, [x,y] and velocity vector [x_v,y_v]. How could i do that? In this case I don't have a normal vector like in the case of a line / circle intersection, have I?

Edited by IsItSharp

Share this post


Link to post
Share on other sites

Thanks for your reply, do you mean like this?

var normal = circ.pos.sub(cir.pos).normalize();

 

Where circ and cir are two circles which intersect each other.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this