Results 1 to 10 of 21

Thread: Circle vs pie segment collision detection

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Circle vs pie segment collision detection?

    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
    Last edited by paul_nicholls; 26-10-2010 at 11:00 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •