Hi all,
I have added to The Probe a new element, a Sentry object (see figure 1). This object sweeps a beam (shaped like a pie segment) around itself (see figure 2), and I now want to add collision detection so that I know when the beam is touching the player.
Figure 1
sentry.jpg
Figure 2
circle vs pie segment collision.png
I know the beam center point, the radius, and the width (angle).
I know the player center point, the radius.
Any ideas as to how I can quickly return true if the beam is over the circle representing the player?
cheers,
Paul
Bookmarks