I've read about the way to detect collision between 2 circles or circle and line using trigonometry.

But now I would like be able to detect which part of the circle arcs I'm hitting. For example I divided my circle to 4 different sized arcs. I would like to know which arc gets hit, 1, 2, 3, or 4? See image: enter image description here What is the best collision detection algorithm for this? Or what is this called?

  • \$\begingroup\$ The algorithm you linked already do that: the a and b forms direction vector which tells what arc(wedge) was hit "the most". To evaluate it, it is important how are your arcs defined? Cw/ccw angles from reference vector(e.g. up) or as vectors in local space? \$\endgroup\$ – wondra Feb 14 '16 at 12:04
  • \$\begingroup\$ sorry but i didnt saw it in the tutorial , i only saw how to hit 1 point in the circle \$\endgroup\$ – user3689 Feb 14 '16 at 13:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.