Thread: 2D colision with vector map

  1. #16
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Originally posted by Hunter2
    How so? I DID include the "if moving up and right" part, you realize...
    whoops, I missed that part. It would still be difficult and messy, though

    Ummm... to solve the problem with the angle to one of the outside walls being greater, you could test to find the shape with the closest midpoint (combining my two methods) and then find the greatest angle on that shape. Or you could represent the outside wall with smaller line segments. Or, if you're moving in small enough steps, it won't be a problem when the point gets right up to the wall, because that angle will be almost 180 degrees.

  2. #17
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Ontario, Canada
    >>Also, XSquared, I don't understand your method... Isn't B always going to be greater than A, since it is A+something?
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #18
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Oh, IC what you mean now...
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  4. #19
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    There are two collision detection tutorials here

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 2D in directX
    By fighter92 in forum Game Programming
    Replies: 6
    Last Post: 01-25-2009, 11:23 AM
  2. Help with 2d arrays
    By thamiz in forum C Programming
    Replies: 25
    Last Post: 05-25-2008, 05:06 AM
  3. Best Graphics Library for 2d RTS?
    By arew264 in forum Game Programming
    Replies: 4
    Last Post: 04-18-2007, 12:05 PM
  4. Replies: 16
    Last Post: 09-22-2006, 03:39 PM
  5. Read file in 2D array
    By Chook in forum C Programming
    Replies: 1
    Last Post: 05-08-2005, 12:39 PM